
Web Scraper
Pricing
Pay per usage

Web Scraper
Crawls arbitrary websites using a web browser and extracts structured data from web pages using a provided JavaScript function. The Actor supports both recursive crawling and lists of URLs, and automatically manages concurrency for maximum performance.
4.5 (22)
Pricing
Pay per usage
651
Monthly users
3.7k
Runs succeeded
>99%
Response time
21 days
Last modified
6 days ago
Problem with running Web Scraper
Closed
When I try to do a scrape I get this message:
3.8.2","osType":"Linux","nodeVersion":"v18.20.1"} 2025-02-27T18:09:01.502Z ERROR Compilation of pageFunction failed.
Hello and thank you for your interest in this Actor!
The error message you're getting (SyntaxError: Unexpected identifier
) shows that your pageFunction
is not syntactically valid JavaScript code. You can see that error in the online code editor here on Apify as well - you're missing a comma between the fields in the returned object.
1return { 2 ... 3 random_text_from_the_page, <---- this comma was missing 4 pageHtml 5}
This should fix your setup and make the Actor run again. I'll close this issue now, but feel free to ask additional questions if you have any. Cheers!
Pricing
Pricing model
Pay per usageThis Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.