What’s the best way to handle screen scraping in Node.js? or How can I efficiently do screen scraping

14 Replies, 1832 Views

For screen scraping node js, it really depends on the site. Static? Cheerio. Dynamic? Puppeteer or Playwright.

CAPTCHAs are the worst. I’ve had luck with 2captcha’s API, but it’s paid. Free option: tweak your request headers and throttle your requests.

Also, don’t forget to check the site’s `robots.txt`—some explicitly ban scraping, and it’s not worth the legal risk.

Messages In This Thread



Users browsing this thread: 1 Guest(s)