From 4469508e1313678d32ec15000b2d6d801e78dda3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=9A=E9=A3=8E=E6=8B=82=E6=9F=B3=E9=A2=9C?= <434857005@qq.com> Date: Wed, 14 Dec 2022 16:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0py/=E4=B9=9D=E9=85=B7.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "py/\344\271\235\351\205\267.py" | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git "a/py/\344\271\235\351\205\267.py" "b/py/\344\271\235\351\205\267.py" index fcd2647..44a3880 100644 --- "a/py/\344\271\235\351\205\267.py" +++ "b/py/\344\271\235\351\205\267.py" @@ -3,11 +3,15 @@ # File : 九酷.py # Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------ # Date : 2022/12/14 +import hashlib import requests import time import ujson +def md5(str): + return hashlib.md5(str.encode(encoding='UTF-8')).hexdigest() + headers = { 'x-requested-with':'XMLHttpRequest', 'user-agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1', @@ -20,13 +24,21 @@ print(s.cookies) fyclass = 1 fypage = 1 tm = int(time.time()) -tm = '' +# tm = '' print(tm) -data = f'type={fyclass}&page={fypage}&time={tm}1670981084&key=52871810a25aa2ac4675e3c4dfd321c6' +key = md5("DS"+str(tm)+"DCC147D11943AF75") +data = f'type={fyclass}&page={fypage}&time={tm}&key={key}' data_dict = {} for dt in data.split('&'): data_dict[dt.split('=')[0]] = dt.split('=')[1] print(data_dict) data_dict = ujson.dumps(data_dict) r = s.post('https://jiuku.site/index.php/api/vod',data=data_dict,headers=headers) -print(r.text) \ No newline at end of file +print(r.text) + +""" +解析免嗅: +"https://jiuku.site/addons/dp/player/dp.php?key=0&from=&id="+vod_id+"&api=&url="+"vipUrl +专线m3u8: +unescape(base64Decode(jsurl)) +""" -- GitLab