Closed ole-ve closed 8 months ago
If you find time, would be great if you could take a look @lewisdonovan (I cannot assign reviewers myself)
Great find! Tested locally and it gives a performance boost of roughly 30%. I'll merge this now and update the NPM module shortly.
Latest version now available in NPM. To update please run npm update google-news-scraper
.
Thanks a lot for the fast merging 👍
Using
headless: true
seems to have a significant performance impact over usingheadless: 'shell'
. There is an issue in the puppeteer repository and during some testing, I found usingshell
was around 7-8 times faster for my queries.It would be great if one could set the puppeteer headless mode by defining it as an input argument.