NoCaptcha класс, правкиЭ

This commit is contained in:
redV0ID 2017-10-16 09:40:08 +07:00
parent 89fb4c9393
commit 32f113c385
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
import requests
from .config import create_tast_url, get_result_url, app_key
#TODO from .errors import AntiCaptchaError
class NoCaptchaTask:
"""
TODO
"""
def __init__(self, anticaptcha_key, sleep_time=5, website_url, website_key, **kwargs):
"""
TODO
:params
return:
"""
self.ANTIKAPTCHA_KEY = anticaptcha_key
self.sleep_time = sleep_time
#TODO заполнить пайлоад для решения рекапчи
self.task_payload = {}
if kwargs:
for key in kwargs:
self.task_payload['task'].update(kwars) # is it error?
def captcha_handler(self):
#TODO