Puppeteer Scraper avatar
Puppeteer Scraper

Pricing

Pay per usage

Go to Apify Store
Puppeteer Scraper

Puppeteer Scraper

Crawls websites with the headless Chrome and Puppeteer library using a provided server-side Node.js code. This crawler is an alternative to apify/web-scraper that gives you finer control over the process. Supports both recursive crawling and list of URLs. Supports login to website.

Pricing

Pay per usage

Rating

4.8

(10)

Developer

Apify

Apify

Maintained by Apify

Actor stats

253

Bookmarked

10K

Total users

524

Monthly active users

3 months ago

Last modified

Share

LT

Ignore URLs with certain query strings

Closed
linen_torch opened this issue
2 years ago

The site i want to scrape has it in multiple languages all denoted with the query '?=hl'. Can i get the crawler to ignore these?

adamek avatar

By ignoring it you mean you want to skip enqueuing such URLs if they were already processed? Are you sure the URLs are otherwise the same? If so, you could trim the query parameter manually and provide uniqueKey explicitly when adding new requests to the queue (which you would need to do manually, inside your page function, while disabling the automatic enqueueing, e.g. by setting the selector option to some gibberish).

Alternatively, you could skip the pages inside the request handler.

nick_slam avatar

Closing this issue as stale.