How does NodeJs crawl dynamic web pages?

I want to climb some e-commerce websites, which have a lot of pictures. Now I"m using cheerio,. I find that it can"t get the images loaded lazily on the page, that is, the images generated by js processing. Is there any way or other library to do this?

Mar.16,2021

it is recommended that puppeteer


can only be obtained by analyzing the js of the web page developed by the Google team, or run a real browser to climb


the url that lazily loads images should be saved in img tags, such as data-src, using chrome's headless mode. Check the properties of those pictures.
if it doesn't work, use phantomjs.


the best way to climb a page is to climb the interface, analyze the calling mode of the interface, input parameters, and cookie.

Menu