From e2173ab1e457e8fa663dd1f15e8bcbb53a87114c Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 10 Oct 2025 08:49:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=8A=96=E9=9F=B3=E8=A7=A3?= =?UTF-8?q?=E6=9E=90=E4=B8=BA=E4=BB=98=E8=B4=B9=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/douyin_parser/main.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/douyin_parser/main.py b/plugins/douyin_parser/main.py index 408cde2..399641e 100644 --- a/plugins/douyin_parser/main.py +++ b/plugins/douyin_parser/main.py @@ -197,9 +197,17 @@ class DouyinParserPlugin(MessagePluginInterface): """解析抖音链接""" try: api_url = "https://api.pearktrue.cn/api/video/douyin/?url=" + pay_api_url = "https://api.pearktrue.cn/api/video/api.php" clean_url = self._clean_url(url) - api_url = api_url + clean_url - response = requests.get(api_url, timeout=30) + # api_url = api_url + clean_url + # response = requests.get(api_url, timeout=30) + # 切换付费模式 + # 发送请求 + params = { + "url": clean_url, + "key": "f56c1fed0c6e64e7" + } + response = requests.post(pay_api_url, params=params, timeout=30) if response.status_code != 200: raise DouyinParserError(f"API请求失败,状态码: {response.status_code}")