Болванка для тестов
This commit is contained in:
parent
6b44cc60a1
commit
366086b710
18
aio_test.py
18
aio_test.py
|
@ -1,10 +1,18 @@
|
||||||
from python3_anticaptcha import aioAntiCaptchaControl, aioImageToTextTask
|
from python3_anticaptcha import NoCaptchaTaskProxyless
|
||||||
import asyncio
|
import asyncio
|
||||||
import aiohttp
|
import aiohttp
|
||||||
import time
|
import time
|
||||||
print(aioAntiCaptchaControl.AntiCaptchaControl(anticaptcha_key='ae23fffcfaa29b170e3843e3a486ef19').get_balance())
|
|
||||||
|
|
||||||
#print(aioAntiCaptchaControl.AntiCaptchaControl(anticaptcha_key='ae23fffcfaa29b170e3843e3a486ef19').complaint_on_result(reported_id=-7))
|
|
||||||
|
|
||||||
print(aioImageToTextTask.ImageToTextTask(anticaptcha_key='ae23fffcfaa29b170e3843e3a486ef19', save_format = 'const')\
|
async def run():
|
||||||
.captcha_handler('http://85.255.8.26/static/image/common_image_example/800070.png'))
|
try:
|
||||||
|
result = await /функция асинхронная/
|
||||||
|
print(result)
|
||||||
|
except Exception as err:
|
||||||
|
print(err)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
loop = asyncio.get_event_loop()
|
||||||
|
loop.run_until_complete(run())
|
||||||
|
loop.close()
|
||||||
|
|
Loading…
Reference in New Issue