Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77c7358

Browse files
1
1 parent 6405364 commit 77c7358

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

jingdong.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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)

0 commit comments

Comments
 (0)