When crawling the web
res = requests.get(url, headers=custom_headers, params = paramDict,cookies=cookies)
If you send a request by getting like this,
When the website receives a request, it does not spray it immediately, but before it is sprayed
On an empty homepage
Loading
I'm going to put this on the web page, and I'm going to put it on the web page.
So in my res, document.cookie = "testck2=e1f8c5e995f64c61ad0e0891fba09fc0; path=/"; loading...
It only comes out like this.
I want to crawl the values after they are all sprayed
Is requests too much? Should I use selenium?
python requests crawling
It usually appears as "Loading..." when the client renders it to javascript. This is difficult with a typical GET because you need to use the state of the DOM that is created after Javascript runs.
© 2024 OneMinuteCode. All rights reserved.