更新 可乐_api_3.3.py
This commit is contained in:
parent
3ff503dd7b
commit
94572b9f65
@ -59,7 +59,7 @@ import math
|
|||||||
import logging
|
import logging
|
||||||
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] ===> %(message)s')
|
logging.basicConfig(level=logging.INFO, format='[%(levelname)s] ===> %(message)s')
|
||||||
code = "可乐阅读_api版"
|
code = "可乐阅读_api版"
|
||||||
ver = "3.2"
|
ver = "3.3"
|
||||||
envname = "yuanshen_api"
|
envname = "yuanshen_api"
|
||||||
debug = False #debug模式 开启即从脚本内部获取环境变量
|
debug = False #debug模式 开启即从脚本内部获取环境变量
|
||||||
debugcookie = "127.0.0.1:5000"
|
debugcookie = "127.0.0.1:5000"
|
||||||
@ -255,17 +255,17 @@ class yuanshen:
|
|||||||
|
|
||||||
def getmain(self):
|
def getmain(self):
|
||||||
headers = {
|
headers = {
|
||||||
"Host": "230640607122241.asfuoqa.cn",
|
"Host": "280766611061943.uvmlg2qxl.cn",
|
||||||
"Connection": "keep-alive",
|
"Connection": "keep-alive",
|
||||||
"Upgrade-Insecure-Requests": "1",
|
"Upgrade-Insecure-Requests": "1",
|
||||||
"User-Agent": user_agent,
|
"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",
|
"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",
|
"X-Requested-With": "com.tencent.mm",
|
||||||
"Accept-Encoding": "gzip, deflate",
|
"Accept-Encoding": "gzip, deflate",
|
||||||
"Accept-Language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7"
|
"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)
|
r = requests.get(url,headers=headers,allow_redirects=False)
|
||||||
if r.status_code == 302:
|
if r.status_code == 302:
|
||||||
j = urlparse(r.headers['Location'])
|
j = urlparse(r.headers['Location'])
|
||||||
Loading…
Reference in New Issue
Block a user