VOOZH about

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

โ‡ฑ Sample Actor ยท Apify


Pricing

Pay per usage

Go to Apify Store

Pricing

Pay per usage

Rating

0.0

(0)

Developer

๐Ÿ‘ Leone Dieujuste

Leone Dieujuste

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a year ago

Last modified

Share

Scrape single-page in JavaScript template

A template for scraping data from a single web page in JavaScript (Node.js). The URL of the web page is passed in via input, which is defined by the input schema. The template uses the Axios client to get the HTML of the page and the Cheerio library to parse the data from it. The data are then stored in a dataset where you can easily access them.

The scraped data in this template are page headings but you can easily edit the code to scrape whatever you want from the page.

Included features

  • Apify SDK - toolkit for building Actors
  • 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
  • Axios client - promise-based HTTP Client for Node.js and the browser
  • Cheerio - library for parsing and manipulating HTML and XML

How it works

  1. Actor.getInput() gets the input where the page URL is defined

  2. axios.get(url) fetches the page

  3. cheerio.load(response.data) loads the page data and enables parsing the headings

  4. This parses the headings from the page and here you can edit the code to parse whatever you need from the page

    $("h1, h2, h3, h4, h5, h6").each((_i, element)=>{...});
  5. Actor.pushData(headings) stores the headings in the dataset

Resources

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

Deep Research Actor

imdigitalashish/deep-research-actor

Actor

๐Ÿ‘ User avatar

Ashish Kumar Verma

2

Shopify Store Leads Scraper

parsebird/shopify-store-leads-scraper

Scrape Shopify store leads by keyword or category. Extract emails, phone numbers, addresses, ratings, social links, and sample products. Filter by location, price, and shipping. Export as JSON, CSV, Excel.

Walmart Seller (Marketplace) Scraper

xtracto/walmart-seller-scraper

Extracts marketplace seller profiles from Walmart.com โ€” identity, contact, address, ratings, branding, and a featured products sample. HTTP-only, no browser.

๐Ÿ‘ User avatar

Farhan Febrian Nauval

2

Remote Actor

getdataforme/remote-actor

Database Schema Explorer

balathon/database-schema-explorer

This Apify Actor connects to various types of databases (SQLite, PostgreSQL, MySQL, Oracle, Microsoft SQL Server), explores their schemas, provides detailed information about tables and columns, shows row counts, and optionally reads sample data.

๐Ÿ‘ User avatar

Balasai Sigireddy

2

JSON Schema Generator

automation-lab/json-schema-generator

Generate JSON Schema (draft-07) from sample JSON instantly. Auto-detects types, required fields, nullable values, and nested structures. Export as JSON or YAML.

๐Ÿ‘ User avatar

Stas Persiianenko

2

Hiring Signal Company Enricher

coregent/hiring-signal-company-enricher

Enrich company domains, websites, or names with public hiring signals - open role counts, hiring departments, locations, remote/hybrid indicators, sample jobs, and a transparent growth signal score. No login or cookies.

2

Airbnb & Booking Price Index

inovaflow/airbnb-booking-price-index

Get the true market-wide median and average nightly price for any city and dates โ€” across the entire Airbnb and Booking.com market, not a small sample. No API keys or logins, just a free Apify account.