косметические изменения

This commit is contained in:
redV0ID 2017-10-24 23:42:38 +07:00
parent 4d9c87b322
commit a93a7e9602
1 changed files with 9 additions and 9 deletions

View File

@ -41,16 +41,16 @@ class NoCaptchaTask:
self.task_payload['task'].update({key: kwargs[key]})
def captcha_handler(self, website_url, website_key):
def captcha_handler(self):
# отправляем реквест
captcha_id = requests.post(create_task_url, json=self.task_payload).json()
if captcha_id['errorId'] == 0:
captcha_id = captcha_id["taskId"]
self.result_payload.update({"taskId": captcha_id})
else:
return captcha_id
if captcha_id['errorId'] == 0:
captcha_id = captcha_id["taskId"]
self.result_payload.update({"taskId": captcha_id})
else:
return captcha_id
time.sleep(self.sleep_time)
while True:
pass
time.sleep(self.sleep_time)
while True:
pass