Playwright Scraper avatar
Playwright Scraper

Pricing

Pay per usage

Go to Store
Playwright Scraper

Playwright Scraper

apify/playwright-scraper

Developed by

Apify

Maintained by Apify

Crawls websites with the headless Chromium, Chrome, or Firefox browser and Playwright library using a provided server-side Node.js code. Supports both recursive crawling and a list of URLs. Supports login to a website.

4.3 (7)

Pricing

Pay per usage

31

Monthly users

141

Runs succeeded

98%

Response time

3.1 days

Last modified

10 months ago

BS

How would this get solved

Closed
bsharma opened this issue
2 months ago

I am trying to run the scraper but facing the issue

jindrich.bar avatar

Hello and thank you for your interest in this Actor!

The preNavigationHooks input option expects a JavaScript array (just the array itself, without the variable declaration like const preNavigationHooks = ... or property names like preNavigationHooks:...). In JavaScript terms, it should be a string representing the array expression, for example:

"[async () => {console.log('hello')}]"

It looks like the error is due to an incorrect format—please check that you're passing a valid array expression as a string.

I'll go ahead and close this issue, but feel free to open a new one if you need further assistance. Cheers!

Pricing

Pricing model

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage.