Ask a question about puppeteer

write a service interface with node. The front end sends a request and crawls the web page after receiving the request. If there are four or five concurrency, the puppeteer seems to be queued to open, causing the request to get stuck and the response is particularly slow. Is there any solution for this?

Apr.15,2022

you can crawl a web page into a task system. The front end submits the task by request (after the task is saved, it returns immediately), and the back end processes the crawling task in turn.


do you use one page object or four or five page objects?

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1beb45d-31a71.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1beb45d-31a71.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?