Python request delay question!!

Asked 1 years ago, Updated 1 years ago, 50 views

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

2022-09-21 10:22

1 Answers

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.


2022-09-21 10:22

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.