CAPTCHAFORUM
Administrator
RuCaptcha.com client for asyncio
Installation:
Usage:
Documentation https://githubmemory.com/repo/JeckLabs/aiorucaptcha
Installation:
git clone https://github.com/JeckLabs/aiorucaptcha.git
cd aiorucaptcha && sudo python setup.py install
Usage:
Code:
import asyncio
import aiorucaptcha
async def recognize(ocr, filename):
with open(filename, 'rb') as f:
captcha = f.read()
result = await ocr.recognize(captcha)
print(result)
# Instead of xxx, the RuCaptcha key
ocr = aiorucaptcha . Client ( 'xxx' )
loop = asyncio.get_event_loop()
tasks = [
asyncio.Task(recognize(ocr, 'captcha_a.gif')),
asyncio.Task(recognize(ocr, 'captcha_b.gif'))]
loop.run_until_complete(asyncio.wait(tasks))
loop.close()
Documentation https://githubmemory.com/repo/JeckLabs/aiorucaptcha