From bcab7d1ac10970d3ba1fee15490736c076514667 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Wed, 28 May 2025 21:44:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A6=81=E7=94=A8=20SSL=20=E8=AF=81?= =?UTF-8?q?=E4=B9=A6=E9=AA=8C=E8=AF=81=E4=BB=A5=E8=A7=A3=E5=86=B3=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 307a029..f80664c 100644 --- a/main.py +++ b/main.py @@ -149,7 +149,7 @@ def post_with_retry(url, proxy_name, json_payload=None, data=None, headers=None, proxies=proxies, timeout=timeout, allow_redirects=True, # 允许重定向 - verify=DEFAULT_CACERT, # 不验证 SSL 证书 + verify=False, # 不验证 SSL 证书 ) if resp.status_code == 401 and not token_refreshed: if verbose: @@ -215,7 +215,7 @@ def gettoken(proxy, r=2): try: proxy_str = db.get_proxy(proxy) url = 'https://graphql.api.dailymotion.com/oauth/token' - response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str},verify=DEFAULT_CACERT) + response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str},verify=False) token = response.json()['access_token'] copy_headers = copy.deepcopy(headers1) copy_headers['authorization'] = "Bearer " + token