We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa3e6a commit 10252e8Copy full SHA for 10252e8
README.md
@@ -377,13 +377,13 @@ import asyncio
377
import concurrent.futures
378
from twocaptcha import TwoCaptcha
379
380
-captcha_result = await captchaSolver(image)
381
-
382
async def captchaSolver(image):
383
loop = asyncio.get_running_loop()
384
- with concurrent.future.ThreadPoolExecutor() as pool:
+ with concurrent.futures.ThreadPoolExecutor() as pool:
385
result = await loop.run_in_executor(pool, lambda: TwoCaptcha(API_KEY).normal(image))
386
return result
+
+captcha_result = asyncio.run(captchaSolver(image))
387
```
388
389
0 commit comments