VOOZH about

URL: https://apify.com/agreeable_romance/web-scraper

โ‡ฑ Web Scraper ยท Apify


Pricing

Pay per usage

Go to Apify Store

Scrapes any website into a structured format.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

๐Ÿ‘ Abhay p

Abhay p

Maintained by Community

Actor stats

1

Bookmarked

22

Total users

1

Monthly active users

4 months ago

Last modified

Share

JavaScript Crawlee & CheerioCrawler Actor Template

This template example was built with Crawlee to scrape data from a website using Cheerio wrapped into CheerioCrawler.

Quick Start

Once you've installed the dependencies, start the Actor:

$apify run

Once your Actor is ready, you can push it to the Apify Console:

apify login # first, you need to log in if you haven't already done so
apify push

Project Structure

.actor/
โ”œโ”€โ”€ actor.json # Actor config: name, version, env vars, runtime settings
โ”œโ”€โ”€ dataset_schena.json # Structure and representation of data produced by an Actor
โ”œโ”€โ”€ input_schema.json # Input validation & Console form definition
โ””โ”€โ”€ output_schema.json # Specifies where an Actor stores its output
src/
โ””โ”€โ”€ main.js # Actor entry point and orchestrator
storage/ # Local storage (mirrors Cloud during development)
โ”œโ”€โ”€ datasets/ # Output items (JSON objects)
โ”œโ”€โ”€ key_value_stores/ # Files, config, INPUT
โ””โ”€โ”€ request_queues/ # Pending crawl requests
Dockerfile # Container image definition

For more information, see the Actor definition documentation.

How it works

This code is a JavaScript script that uses Cheerio to scrape data from a website. It then stores the website titles in a dataset.

  • The crawler starts with URLs provided from the input startUrls field defined by the input schema. Number of scraped pages is limited by maxPagesPerCrawl field from the input schema.
  • The crawler uses requestHandler for each URL to extract the data from the page with the Cheerio library and to save the title and URL of each page to the dataset. It also logs out each result that is being saved.

What's included

  • Apify SDK - toolkit for building Actors
  • Crawlee - web scraping and browser automation library
  • Input schema - define and easily validate a schema for your Actor's input
  • Dataset - store structured data where each object stored has the same attributes
  • Cheerio - a fast, flexible & elegant library for parsing and manipulating HTML and XML
  • Proxy configuration - rotate IP addresses to prevent blocking

Resources

Creating Actors with templates

Getting started

For complete information see this article. To run the Actor use the following command:

$apify run

Deploy to Apify

Connect Git repository to Apify

If you've created a Git repository for the project, you can easily connect to Apify:

  1. Go to Actor creation page
  2. Click on Link Git Repository button

Push project on your local machine to Apify

You can also deploy the project on your local machine to Apify without the need for the Git repository.

  1. Log in to Apify. You will need to provide your Apify API Token to complete this action.

    $apify login
  2. Deploy your Actor. This command will deploy and build the Actor on the Apify Platform. You can find your newly created Actor under Actors -> My Actors.

    $apify push

Documentation reference

To learn more about Apify and Actors, take a look at the following resources:

You might also like

Universal Website to API โ€“ Any Site โ†’ JSON

inquisitive_zeppelin/universal-website-to-api---any-site---json

Multi-URL Web Scraper is a fast, reliable, and highly flexible scraping tool designed to extract structured data from multiple web pages in a single run.

Facebook Comments (Structured Output)

expected_knight/facebook-comments-structured-output

Pull the comments from any Facebook post in a structured format.

Full Website HTML Crawler

kahan_anghan/full-website-html-crawler

A fast and efficient web scraping Actor that crawls websites and extracts structured page-level data. Supports configurable crawl limits and exports results in structured dataset format.

14

Facebook Comments with Structured Output

expected_knight/facebook-comments-with-structured-output

Pull the comments from any Facebook post in a structured format.

Universal AI Web Scraper

stanvanrooy6/universal-ai-web-scraper

Turn any website into an API. Extract structured data using plain English. Features anti-bot bypass, dynamic rendering, and web search. No coding needed.

97

1.5

Universal Web Scraper & Data Extractor โ€“ Fast No-Code Tool

motivational_nickel/my-actor

Universal web scraper that extracts structured data from almost any website. Detect and scrape webpage content into clean datasets (CSV, Excel, JSON) without coding. Ideal for web scraping, research, lead generation, automation pipelines, and large-scale data extraction.

๐Ÿ‘ User avatar

Leoncio Jr Coronado

54

5.0

AI Web Extractor

uxinfra/uxinfra-web-extractor

Intelligent web content extraction with AI-powered structuring. Extracts articles, products, reviews, and structured data from any website.

Any Website Email Scraper โ€“ Cheapest ๐Ÿ“ง๐ŸŒ

contactminerlabs/any-website-email-scraper---cheapest

๐Ÿ” Scrape Emails from Any Website Instantly Enter a website or keyword and extract emails from any public web page, including page title, email address, and source URL ๐Ÿ“ง Perfect for lead generation, B2B outreach, sales teams, marketing campaigns, and enriching your CRM & data pipelines ๐Ÿš€

๐Ÿ‘ User avatar

ContactMinerLabs

12

Related articles

Web crawling vs. web scraping
Read more