美文网首页
python3模拟post请求

python3模拟post请求

作者: theo_NI | 来源:发表于2018-11-10 20:08 被阅读0次

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)

相关文章

网友评论

      本文标题:python3模拟post请求

      本文链接:https://www.haomeiwen.com/subject/celtfqtx.html