fix: 更新reCAPTCHA任务类型为ReCaptchaV3TaskProxyLess并调整payload格式
This commit is contained in:
parent
80f81d4dc5
commit
e89557a289
4
onoe.py
4
onoe.py
@ -267,14 +267,14 @@ def solve_recaptcha_v3_with_proxy(
|
|||||||
payload = {
|
payload = {
|
||||||
"clientKey": "CAP-A76C932D4C6CCB3CA748F77FDC07D996",
|
"clientKey": "CAP-A76C932D4C6CCB3CA748F77FDC07D996",
|
||||||
"task": {
|
"task": {
|
||||||
"type": "ReCaptchaV3Task",
|
"type": "ReCaptchaV3TaskProxyLess",
|
||||||
"websiteURL": f"https://www.dailymotion.com/search/{encoded_query}/top-results",
|
"websiteURL": f"https://www.dailymotion.com/search/{encoded_query}/top-results",
|
||||||
"websiteKey": "6LeOJBIrAAAAAPMIjyYvo-eN_9W1HDOkrEqHR8tM",
|
"websiteKey": "6LeOJBIrAAAAAPMIjyYvo-eN_9W1HDOkrEqHR8tM",
|
||||||
"pageAction": "search",
|
"pageAction": "search",
|
||||||
"minScore": 0.5
|
"minScore": 0.5
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
resp = requests.post(create_url, json=payload, headers=headers, timeout=30)
|
resp = requests.post(create_url, data=json.dumps(payload), headers=headers, timeout=30)
|
||||||
logger.info(f"[token] 发送 payload:{payload}")
|
logger.info(f"[token] 发送 payload:{payload}")
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
task_id = resp.json()["taskId"]
|
task_id = resp.json()["taskId"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user