Simple Web Scraper avatar

Simple Web Scraper

Under maintenance

Pricing

from $5.00 / actor start

Go to Apify Store
Simple Web Scraper

Simple Web Scraper

Under maintenance

Scrapes titles, headings, and links from a given URL.

Pricing

from $5.00 / actor start

Rating

5.0

(1)

Developer

abdul qadir basha

abdul qadir basha

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

7 days ago

Last modified

Share

Simple Web Scraper — Apify Actor

A minimal Python Apify actor that scrapes a single page and extracts:

  • Page title
  • Headings (h1 / h2 / h3)
  • Links (up to maxLinks)

Results are stored in the default Apify dataset.

Input

FieldTypeRequiredDefaultDescription
urlstringFull URL of the page to scrape
maxLinksinteger20Maximum number of links to collect

Example input

{
"url": "https://example.com",
"maxLinks": 10
}

Output

Each run pushes a single record to the dataset:

{
"url": "https://example.com",
"title": "Example Domain",
"headings": [
{ "level": "h1", "text": "Example Domain" }
],
"links": [
{ "url": "https://www.iana.org/domains/reserved", "text": "More information..." }
],
"links_found": 1
}

Running locally

# Install dependencies
pip install -r requirements.txt
# Run with Apify CLI
apify run --input '{"url": "https://example.com", "maxLinks": 10}'

Deploying to Apify

apify login
apify push