mirror of
https://github.com/Bao-qing/123pan.git
synced 2025-11-13 12:16:07 +08:00
android协议添加文件夹下载
This commit is contained in:
parent
8766e3564f
commit
69ee866e35
|
|
@ -4,6 +4,7 @@ import os
|
||||||
import re
|
import re
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import uuid
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -40,7 +41,7 @@ class Pan123:
|
||||||
# "authorization": "",
|
# "authorization": "",
|
||||||
"content-type": "application/json",
|
"content-type": "application/json",
|
||||||
"osversion": "Android_7.1.2",
|
"osversion": "Android_7.1.2",
|
||||||
"loginuuid": "3ec3167d3ba54ba61ea15b823b0a05f4",
|
"loginuuid": str(uuid.uuid4().hex),
|
||||||
"platform": "android",
|
"platform": "android",
|
||||||
"devicetype": "M2101K9C",
|
"devicetype": "M2101K9C",
|
||||||
"x-channel": "1004",
|
"x-channel": "1004",
|
||||||
|
|
@ -140,8 +141,8 @@ class Pan123:
|
||||||
text = a.json()
|
text = a.json()
|
||||||
res_code_getdir = text["code"]
|
res_code_getdir = text["code"]
|
||||||
if res_code_getdir != 0:
|
if res_code_getdir != 0:
|
||||||
print(a.text)
|
#print(a.text)
|
||||||
print(a.headers)
|
#print(a.headers)
|
||||||
print("code = 2 Error:" + str(res_code_getdir))
|
print("code = 2 Error:" + str(res_code_getdir))
|
||||||
return res_code_getdir
|
return res_code_getdir
|
||||||
lists_page = text["data"]["InfoList"]
|
lists_page = text["data"]["InfoList"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user