I would like to ask why this situation can not crawl the content of the tag.

as shown in the figure, only the tag is returned, but the content is gone. I haven"t been learning crawlers for long, and I don"t know why I"m wrong.

Mar.02,2021

you can test it in several ways, such as regular, or pyquery, to see if it is successful.
but in your case, the web page is mostly refreshed by ajax, or you set a time function to pause and then crawl.


check the source code of the page first. If there is no data you want, it means that the data is loaded asynchronously by ajax (currently, the vast majority of website data is loaded asynchronously). If the load is asynchronous, you need to find the URL, of the ajax to see the required parameters, and then simulate the request yourself.

Menu