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