Spaces:
Running
Running
rogerxavier
commited on
Commit
•
33a670b
1
Parent(s):
6a35e5b
Update utils.py
Browse files
utils.py
CHANGED
@@ -8,7 +8,13 @@ session = requests.Session()
|
|
8 |
urlBase = 'https://jingling.bifangpu.com'
|
9 |
purchaseBase = urlBase+"/api/resource/purchase"
|
10 |
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
headers = {
|
13 |
"authority": "jingling.bifangpu.com",
|
14 |
"method": "GET",
|
@@ -18,7 +24,6 @@ headers = {
|
|
18 |
"Accept-Encoding": "gzip, deflate, br, zstd",
|
19 |
"Accept-Language": "zh-CN,zh;q=0.9",
|
20 |
"Cache-Control": "max-age=0",
|
21 |
-
"Cookie": cookie,
|
22 |
"Dnt": "1",
|
23 |
"If-None-Match": "\"5b56-ChT6C0U9s3iYKFMBV41XLcqXxRc\"",
|
24 |
"Priority": "u=0, i",
|
|
|
8 |
urlBase = 'https://jingling.bifangpu.com'
|
9 |
purchaseBase = urlBase+"/api/resource/purchase"
|
10 |
|
11 |
+
#截止时间信息: jinglingpan:sessid=d9aafa51-49a6-4c1f-a132-79ae613178f8; path=/; expires=Fri, 02 Aug 2024 12:56:01 GMT, jinglingpan:sessid.sig=bqFPySSp2PDTlM9vvIyHAlZQHPw; path=/; expires=Fri, 02 Aug 2024 12:56:01 GMT
|
12 |
+
cookie={"jinglingpan:sessid": "d9aafa51-49a6-4c1f-a132-79ae613178f8", "jinglingpan:sessid.sig": "bqFPySSp2PDTlM9vvIyHAlZQHPw"}
|
13 |
+
|
14 |
+
|
15 |
+
|
16 |
+
session.cookies = requests.utils.cookiejar_from_dict(cookie)
|
17 |
+
|
18 |
headers = {
|
19 |
"authority": "jingling.bifangpu.com",
|
20 |
"method": "GET",
|
|
|
24 |
"Accept-Encoding": "gzip, deflate, br, zstd",
|
25 |
"Accept-Language": "zh-CN,zh;q=0.9",
|
26 |
"Cache-Control": "max-age=0",
|
|
|
27 |
"Dnt": "1",
|
28 |
"If-None-Match": "\"5b56-ChT6C0U9s3iYKFMBV41XLcqXxRc\"",
|
29 |
"Priority": "u=0, i",
|