2captcha / 2captcha-python

Python 3 package for easy integration with the API of 2captcha captcha solving service to bypass recaptcha, hcaptcha, сloudflare turnstile, funcaptcha, geetest and solve any other captchas.
https://pypi.org/project/2captcha-python
MIT License
551 stars 92 forks source link

It's new version (v_1.2.0) not working for linux, may be for windows also but older one works fine. #53

Closed kali-37 closed 1 year ago

kali-37 commented 1 year ago

twocaptcha couldnot be resolved. result=solver.normal('/path')

Error: 'normal' not found

kratzky commented 1 year ago

Could you please provide all the code you use starting from the imports so we can try to reproduce the issue?

hobrin commented 1 year ago
from twocaptcha import TwoCaptcha
solver = TwoCaptcha(anticaptcha_key)
solver.normal('/path')
kratzky commented 1 year ago
from twocaptcha import TwoCaptcha
solver = TwoCaptcha(anticaptcha_key)
solver.normal('/path')

Just tested on a clean linux installation:

from twocaptcha import TwoCaptcha
solver = TwoCaptcha('KEY')
res = solver.normal('./cap.jpg')
print(res)

Works fine and prints the result.

Could you please run the following code and show the result?

import twocaptcha
print(twocaptcha.__version__)
print(dir(twocaptcha.TwoCaptcha))