Web Scraper avatar
Web Scraper

Pricing

Pay per usage

Go to Store
Web Scraper

Web Scraper

Developed by

Apify

Apify

Maintained by Apify

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

707

Total users

82.8k

Monthly users

4.1k

Runs succeeded

>99%

Issue response

21 days

Last modified

22 days ago

RS

The main function of the Actor threw an exception.

Closed

ritzy_sample opened this issue
9 months ago

Hi,

I don't know what is causing this issue as I am quite new to scraping.

The result I am getting is this: ERROR Compilation of pageFunction failed.

Appreciate any help

jindrich.bar avatar

Hello, and thank you for your interest in this Actor!

The logs of your Actor say it all. Under the ERROR Compilation of pageFunction failed. line, the Actor prints the exact error - which is Unexpected identifier: pageHtml in your case. On the Input tab, the pageFunction editor also checks for syntax errors - you can see that you've missed a comma after the second-last line (see the attached screenshot).

I tried adding that one comma and the Actor worked as expected, returning two results.

I'll close this issue now, but feel free to ask additional questions if you have any. Cheers!