更新 可乐_api_3.3.py
This commit is contained in:
parent
3ff503dd7b
commit
94572b9f65
@ -59,7 +59,7 @@ import math
|
||||
import logging
|
||||
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] ===> %(message)s')
|
||||
code = "可乐阅读_api版"
|
||||
ver = "3.2"
|
||||
ver = "3.3"
|
||||
envname = "yuanshen_api"
|
||||
debug = False #debug模式 开启即从脚本内部获取环境变量
|
||||
debugcookie = "127.0.0.1:5000"
|
||||
@ -255,17 +255,17 @@ class yuanshen:
|
||||
|
||||
def getmain(self):
|
||||
headers = {
|
||||
"Host": "230640607122241.asfuoqa.cn",
|
||||
"Connection": "keep-alive",
|
||||
"Upgrade-Insecure-Requests": "1",
|
||||
"User-Agent": user_agent,
|
||||
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/wxpic,image/tpg,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
|
||||
"X-Requested-With": "com.tencent.mm",
|
||||
"Accept-Encoding": "gzip, deflate",
|
||||
"Accept-Language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
||||
"Host": "280766611061943.uvmlg2qxl.cn",
|
||||
"Connection": "keep-alive",
|
||||
"Upgrade-Insecure-Requests": "1",
|
||||
"User-Agent": user_agent,
|
||||
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/wxpic,image/tpg,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7",
|
||||
"X-Requested-With": "com.tencent.mm",
|
||||
"Accept-Encoding": "gzip, deflate",
|
||||
"Accept-Language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
||||
}
|
||||
|
||||
url = 'http://230640607122241.asfuoqa.cn/r?upuid=2306406'
|
||||
url = 'http://280766611061943.uvmlg2qxl.cn/r?fne=232&g7g=s0w&lgn=ll7&upuid=2807666&wxl=zy8&x7f=76e'
|
||||
r = requests.get(url,headers=headers,allow_redirects=False)
|
||||
if r.status_code == 302:
|
||||
j = urlparse(r.headers['Location'])
|
||||
Loading…
Reference in New Issue
Block a user