From 4b3a8ce864cf77c493e97f5bcfe2687c89703b93 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Fri, 30 May 2025 23:11:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4SSL=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E9=80=89=E9=A1=B9=E4=BB=A5=E7=AE=80=E5=8C=96=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index bacfec6..8dff8d6 100644 --- a/main.py +++ b/main.py @@ -223,8 +223,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=False) + response = requests.post(url, headers=headers, data=data, proxies={"http": proxy_str, "https": proxy_str}) token = response.json()['access_token'] copy_headers = copy.deepcopy(headers1) copy_headers['authorization'] = "Bearer " + token