Python 使用requests发送POST请求
- 测试网站,百度地域风向标
url = 'http://top.baidu.com/region/singlelist'
d = {'boardid': '341', 'divids[]': '904','divids[]': '911','divids[]': '910'}
r = requests.post(url, data=d,proxies=proxies,headers=headers)
print(r.text)
url = 'http://top.baidu.com/region/singlelist'
d = {'boardid': '341', 'divids[]': '904','divids[]': '911','divids[]': '910'}
r = requests.post(url, data=d,proxies=proxies,headers=headers)
print(r.text)
本文标题:python3模拟post请求
本文链接:https://www.haomeiwen.com/subject/celtfqtx.html
网友评论