|
网购之家活动线报群:427176004 |
点击返回【最新活动】获取实时线报 |
网购之家小编私人微信号:vip445566789
不完整,只是一个模拟post的代码,自己研究着怎么玩吧,我不会写。
- import requests
- headers= {
- "Host": "hd.oppo.com",
- "Connection": "keep-alive",
- "Content-Length": "118",
- "Accept": "application/json, text/javascript, */*; q=0.01",
- "X-Requested-With": "XMLHttpRequest",
- "User-Agent": "Mozilla/5.0 (Linux; Android 6.0.1; Moto G (4)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Mobile Safari/537.36 Edg/86.0.622.43",
- "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8",
- "Origin": "https://hd.oppo.com",
- "Sec-Fetch-Site": "same-origin",
- "Sec-Fetch-Mode": "cors",
- "Sec-Fetch-Dest": "empty",
- "Referer": "https://hd.oppo.com/act/m/2020/happyday/index.html?us=shouye&um=yaofeng&uc=1111",
- "Accept-Encoding": "gzip, deflate, br",
- "Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6",
- "Cookie": "这里填入你的cookie保留前后引号"
- };
- data= {
- "aid": "1093",
- "coupons_activity_id": "1663",
- "coupon_mid": "ca247b7bd7dfa579ea5e552d8b349a37",
- "coupons_name": "秒杀券"
- }
- res = requests.post(url="https://hd.oppo.com/platform/receive",headers = headers,data = data)print(res.text)
|
扫一扫即可在手机端浏览
|