s = requests.Session()
payload = {"keyboard": ‘全国’,
"kw": '',
"show": "title",
"tempid": '1',
"tbname": 'download',
"x": '15',
"y": '16'}
data_gb2312 = urlencode(payload, encoding='gb2312')
headers = {'content-type': 'application/x-www-form-urlencoded'}
response = s.post('http://www.xxxx.com/sss', data=data_gb2312,headers = headers)
response.encoding = 'gb2312'

被折叠的 条评论
为什么被折叠?



