Почти заполнен пейлоад(без прокси-полей)
This commit is contained in:
parent
a162167c65
commit
b761fd42dc
|
@ -8,7 +8,8 @@ class NoCaptchaTask:
|
|||
"""
|
||||
TODO
|
||||
"""
|
||||
def __init__(self, anticaptcha_key, sleep_time=5, website_url, website_key, **kwargs):
|
||||
# Добавить прокси адрес
|
||||
def __init__(self, anticaptcha_key, website_url, website_key, proxy_type="http", sleep_time=5, **kwargs):
|
||||
"""
|
||||
TODO
|
||||
:params
|
||||
|
@ -16,8 +17,21 @@ class NoCaptchaTask:
|
|||
"""
|
||||
self.ANTIKAPTCHA_KEY = anticaptcha_key
|
||||
self.sleep_time = sleep_time
|
||||
self.website_url = website_url
|
||||
self.website_key = website_key
|
||||
self.proxy_type = proxy_type
|
||||
#TODO заполнить пайлоад для решения рекапчи
|
||||
self.task_payload = {}
|
||||
self.task_payload = {"clientKey": self.ANTIKAPTCHA_KEY,
|
||||
"task":
|
||||
{
|
||||
"type": "NoCaptchaTask",
|
||||
"website_url": self.website_url,
|
||||
"website_key": self.website_key,
|
||||
"proxy_type": self.proxy_type,
|
||||
"proxy_adress": "",
|
||||
"proxy_login": "",
|
||||
"proxy_password": ""
|
||||
}}
|
||||
|
||||
if kwargs:
|
||||
for key in kwargs:
|
||||
|
|
Loading…
Reference in New Issue