How to determine the date element in python requests.post?

how does the date element in requests.post determine

when building a crawler request

such as

requests.post (url, data=post_data)-sharp pseudo code

the content of this post_data is different when crawling different websites. how should this content be determined?

Mar.12,2021

to submit a table with post, you need to confirm the data items required by the server, and then form a json pair.

requests.post(url=url, data=data)

I think the landlord is talking about the submission of data.

< hr >

generally use browser developer tools to confirm the method of web page request, cookie, request header, etc.
that is to say, data can also find
here to simulate the process of submitting a table, and you can see the submitted parameter items

.

clipboard.png

clipboard.png

requests.post(headers=headers,params=json.dumps(payload),url=url)
< hr >

well, use payload. I was wrong.

Menu