My Demo Actor avatar

My Demo Actor

Pricing

Pay per usage

Go to Apify Store
My Demo Actor

My Demo Actor

testtt

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Šimon Maresz

Šimon Maresz

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Share

Web Title Scraper

A lightweight Apify Actor that crawls one or more websites and collects the page title and URL of every page it visits. Built with Crawlee and Cheerio for fast, efficient HTML scraping — no headless browser required.

What it does

Starting from the URLs you provide, the actor:

  1. Fetches each page using an HTTP request (no browser overhead).
  2. Parses the HTML with Cheerio and extracts the <title> tag.
  3. Follows links and continues crawling up to the configured limit.
  4. Saves every { url, title } pair to a structured Dataset.

The resulting dataset can be exported as JSON, CSV, Excel, or XML directly from the Apify Console.

Input

FieldTypeDefaultDescription
startUrlsarrayhttps://apify.comOne or more URLs to start crawling from
maxRequestsPerCrawlinteger100Hard cap on the total number of pages visited

Example input

{
"startUrls": [
{ "url": "https://example.com" }
],
"maxRequestsPerCrawl": 50
}

Output

Each crawled page produces one record in the dataset:

{
"url": "https://example.com/about",
"title": "About Us – Example"
}

Running locally

Make sure you have Node.js 18+ and the Apify CLI installed.

# Install dependencies
npm install
# Run the actor locally
apify run

Results are saved to ./storage/datasets/default/.

Deploying to Apify

Option A — push from your machine

apify login # enter your Apify API token when prompted
apify push # builds and deploys the actor to Apify Platform
  1. Open Actor creation in the Apify Console.
  2. Click Link Git Repository and point it at this repo.
  3. Every push to the main branch triggers an automatic build.

Tech stack

LibraryPurpose
Apify SDKActor lifecycle, input/output, proxy
CrawleeRequest queue, crawl orchestration
CheerioFast server-side HTML parsing

Resources

  • Apify Platform docs
  • CheerioCrawler API reference
  • Web scraping with Cheerio — Apify Blog
  • Join the Apify developer community on Discord