好友
阅读权限10
听众
最后登录1970-1-1
|
代码如下:
s = requests.session()
s.headers.update({
"content-length": "151",
"sec-ch-ua": '"Not A;Brand";v="99","Chromium";v="98","Google Chrome";v="98"',
"accept": "application/json,text/plain,*/*",
"content-type": "application/x-www-form-urlencoded",
"sec-ch-ua - mobile": "?0",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36",
"sec-ch-ua-platform": "macOS",
"origin": "https://www.ixigua.com",
"sec-fetch-site": "cross-site",
"sec-fetch-mode": "cors",
"sec-fetch-dest": "empty",
"referer": "https://www.ixigua.com",
"accept-encoding": "gzip, deflate, br",
"accept-language": "zh-CN,zh;q=0.9"
})
url = 'https://ttwid.bytedance.com/ttwid/union/register/'
data = '{"region":"cn","aid":1768,"needFid":false,"service":"www.ixigua.com","migrate_info":{"ticket":"","source":"node"},"cbUrlProtocol":"https","union":true}'
resp = s.post(url, data=data, verify=False)
b = resp.content
print(b) |
|