python3-anticaptcha/aio_test.py

19 lines
342 B
Python
Raw Normal View History

2017-10-30 12:00:14 +00:00
from python3_anticaptcha import NoCaptchaTaskProxyless
import asyncio
import aiohttp
import time
2017-10-30 12:00:14 +00:00
async def run():
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()