VOOZH about

URL: https://apify.com/ambitious_neoprene/my-actor

⇱ Apollo Scraper Β· Apify


Pricing

Pay per usage

Go to Apify Store

Pricing

Pay per usage

Rating

0.0

(0)

Developer

πŸ‘ Marketing Xpert

Marketing Xpert

Maintained by Community

Actor stats

0

Bookmarked

19

Total users

8

Monthly active users

24 days ago

Last modified

Share

TypeScript 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_schema.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.ts # 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 TypeScript 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. In short, you will:

  1. Build the Actor
  2. Run the Actor

Pull the Actor for local development

If you would like to develop locally, you can pull the existing Actor from Apify console using Apify CLI:

  1. Install apify-cli

    Using Homebrew

    $brew install apify-cli

    Using NPM

    $npm-ginstall apify-cli
  2. Pull the Actor by its unique <ActorId>, which is one of the following:

    • unique name of the Actor to pull (e.g. "apify/hello-world")
    • or ID of the Actor to pull (e.g. "E2jjCZBezvAZnX8Rb")

    You can find both by clicking on the Actor title at the top of the page, which will open a modal containing both Actor unique name and Actor ID.

    This command will copy the Actor into the current directory on your local machine.

    $apify pull <ActorId>

Documentation reference

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

You might also like

Apollo Companies Leads Scraper

coladeu/apollo-organizations-scraper

This API can scrape structured companies data from Apollo.io, including emails and phone numbers. It does not require Apollo account cookies or authentication.

Apollo People Leads Scraper

coladeu/apollo-people-leads-scraper

This API can scrape structured people data from Apollo.io. This scraper do NOT provide email addresses or telephone numbers. It does not require Apollo account cookies or authentication.

Leads Scraper - βœ… Up to 10k with EMAILS βœ… similar to Apollo

unlimitedleadtestinbox/unlimited-leads-scraper---up-to-10k-with-emails

Scrape Up to 10K leads per run with emails. Similar to Apollo. Using Unlimited leads database

πŸŽ‰ Leads Scraper βœ… Upto 500K Leads With EMAILS βœ… Like Apollo

pipelinelabs/lead-scraper-apollo-zoominfo-lusha

Scrape Up to 500K leads per month with Emails, LinkedIn URL, Phone Numbers, & More! Similar to Apollo, ZoomInfo, Lusha. 250+ Million Verified Database!

Pipeline Labs

9.1K

3.9

Apollo Person Phone + Email Enrichment

coladeu/apollo-person-phone-and-email-enrichment

Retrieve fresh contact phone numbers and emails for Apollo person IDs in real-time. Only successful enrichments are charged, making it a cost-efficient bridge to Apollo.io.

Leads Scraper βœ… $1/1k with EMAILS βœ… Apollo | LinkedIn Profile

peakydev/leads-scraper-ppe

πŸ”₯BURST REQUEST FIXEDπŸ”₯ - Cheap ways to Extract leads with verified ☎️ Mobile βœ… Work & Personal Emails. Similar to Apollo, ZoomInfo, Lusha, LinkedIn | Google Maps

13K

3.4

πŸŽ‰ Leads Finder βœ… $1.50/1k with Emails βœ… Apollo Alternative

pipelinelabs/leads-finder-with-emails-apollo-lusha-zoominfo

Find verified B2B leads with emails, LinkedIn URLs & phone numbers. 250M+ contact database with 100% email coverage. Apollo, Zoominfo & Lusha alternative. Up to 50,000 leads per run.

Pipeline Labs

1.4K

4.8

✨Leads Finder - $1.5/1k leads with Emails [Apollo Alternative]

code_crafter/leads-finder

βœ… Affordable alternative to ZoomInfo, Lusha & Apollo. βœ… Get Business email, πŸ“žMobile Number, Personal email, LinkedIn profiles, company details etc..

39K

3.8

Lead Finder & Scraper Rental with REAL Emails βœ… like Apollo 🟑

amr-mando/lead-finder-rental

(100% REAL Emails & Linkedin & ALL DATAβœ…) Similar to Apollo, Zoominfo, Lusha, Crunchbase, Searchleads βœ… Get Business email, phone, website url, etc... Split URLs to 10k each with # of employee filter for 10k+ (Kindly leave us a review)

B2B Leads Finder β€” Apollo & ZoomInfo Alternative

nexgendata/b2b-leads-finder

Find B2B leads with verified emails & phone numbers. Search by job title, company, industry, location. 10x cheaper than Apollo.io & ZoomInfo. Export to CSV.