File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import os
2+ import requests
3+
4+ cookie = os .environ .get ("JD_COOKIE" )
5+
6+ url = ("https://api.m.jd.com/client.action?functionId=signBeanAct&body=%7B%22fp%22%3A%22-1%22%2C%22shshshfp%22%3A%22-1"
7+ "%22%2C%22shshshfpa%22%3A%22-1%22%2C%22referUrl%22%3A%22-1%22%2C%22userAgent%22%3A%22-1%22%2C%22jda%22%3A%22-1"
8+ "%22%2C%22rnVersion%22%3A%223.9%22%7D&appid=ld&client=apple&clientVersion=10.0.4&networkType=wifi&osVersion=14"
9+ ".8.1&uuid=3acd1f6361f86fc0a1bc23971b2e7bbe6197afb6&openudid=3acd1f6361f86fc0a1bc23971b2e7bbe6197afb6&jsonp"
10+ "=jsonp_1645885800574_58482" )
11+
12+ headers = {"Connection" : 'keep-alive' ,
13+ "Content-Type" : "application/x-www-form-urlencoded; charset=UTF-8" ,
14+ "Cache-Control" : 'no-cache' ,
15+ "User-Agent" : "okhttp/3.12.1;jdmall;android;version/10.3.4;build/92451;" ,
16+ "accept" : "*/*" ,
17+ "connection" : "Keep-Alive" ,
18+ "Accept-Encoding" : "gzip,deflate" ,
19+ "Cookie" : cookie
20+ }
21+
22+ response = requests .post (url = url , headers = headers )
23+ print (response .text )
You can’t perform that action at this time.
0 commit comments