Merge pull request #14 from arkadybag/patch-1

Update NoCaptchaTask.py
Delete wrong string.
This commit is contained in:
Andrei 2018-09-14 21:55:30 +03:00 committed by GitHub
commit 9115f425bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -125,7 +125,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()