Crawler 018_urllib library_cookie anti-crawling_post requests Baidu translation to obtain percent translation content_and detailed translation content---python work notes 037

Then let's see how to send a post request with urllib, here we

Take Baidu Translate as an example

 

We translate a spider, then we look at the request, we can see that there are many

find sug this

 

You can see that the form data here is the content in the post request body

 

Then we click preview is actually

the actual content returned

 

Then the request method uses post

 

Then we take the above information over the url, the one on the request path, right?

Then UA took it over, and then

Guess you like

Origin blog.csdn.net/lidew521/article/details/132206479