Open The-Law-1 opened 2 years ago
Use browser.wsEndpoint() and puppeteer.connect to save some time
https://stackoverflow.com/questions/69170403/puppeteer-using-only-1-browser-instance Basically only one browser, I don't know would you just never close it or what, maybe a text file with the current endpoint ?
It turns out the browser opens fast, but it's the page that takes time to load
The cache helps a little (1-2 seconds)
Scrape all the rows at once as an array and flip through that instead of scraping in the while loop