Update NoCaptchaTask.py

Видимо вовремя копирования осталось
This commit is contained in:
Arkady 2018-09-14 21:03:26 +03:00 committed by GitHub
parent 0a97eb821c
commit c12214b88d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -122,7 +122,6 @@ class aioNoCaptchaTask:
self.task_payload["task"].update({"websiteURL": websiteURL,
"websiteKey": websiteKey})
# отправляем реквест, в ответ получаем JSON содержащий номер решаемой капчи
captcha_id = requests.post(create_task_url, json=self.task_payload).json()
async with aiohttp.ClientSession() as session:
async with session.post(create_task_url, json=self.task_payload) as resp:
captcha_id = await resp.json()