Tips and Tricks for Web Scraping with Puppeteer | HackerNoon
The <a href="https://hackernoon.com/tagged/google" target="_blank">Google</a> Chrome team made waves last year when it released <a href="https://github.com/GoogleChrome/puppeteer" target="_blank">Puppeteer</a>, a NodeJS API for running headless Chrome instances. It represents a marked improvement both in terms of speed and stability over existing solutions like <a href="https://github.com/ariya/phantomjs" target="_blank">PhantomJS</a> and <a href="https://github.com/SeleniumHQ/selenium" target="_blank">Selenium</a>, and was named <a href="https://www.scraperapi.com/blog/the-10-best-web-scraping-tools" target="_blank">one of the ten best web scraping tools of 2018</a>. However, it is not without its own set of warts, and getting Puppeteer running smoothly for large <a href="https://hackernoon.com/tagged/web-scraping" target="_blank">web scraping</a> jobs can bring its own set of complexities (at <a href="https://www.scraperapi.com" target="_blank">Scraper API</a>, we use Puppeteer to scrape and render Javascript from millions of web pages each month). Here are a few lessons we’ve learned.
hackernoon.com