From 1936eaea42dc87fc8622c8d136d5c2dfbcc04c89 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Sat, 31 May 2025 05:01:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=90=9C=E7=B4=A2URL?= =?UTF-8?q?=E7=BC=96=E7=A0=81=E4=BB=A5=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=85=B3=E9=94=AE=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onoe.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onoe.py b/onoe.py index 0c58fa4..e0643d1 100644 --- a/onoe.py +++ b/onoe.py @@ -263,11 +263,12 @@ def solve_recaptcha_v3_with_proxy( last_error = None for attempt in range(1, max_task_retries + 1): try: + encoded_query = quote(keyword, safe="") payload = { "clientKey": "CAP-A76C932D4C6CCB3CA748F77FDC07D996", "task": { "type": "ReCaptchaV3Task", - "websiteURL": f"https://www.dailymotion.com/search/{keyword}/top-results", + "websiteURL": f"https://www.dailymotion.com/search/{encoded_query}/top-results", "websiteKey": "6LeOJBIrAAAAAPMIjyYvo-eN_9W1HDOkrEqHR8tM", "pageAction": "___grecaptcha_cfg.clients['100000']['L']['L']['promise-callback'](gRecaptchaResponse)", "minScore": 0.3