-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constantly receiving Not solved
while using fromdriver
#27
Comments
Hi, just to clarify, everything works fine, but these 4 images, which you sent links for, are Not solved, right? OR: do you receive Not solved not only for the images you sent, but just constantly? Didn't get it, sry. Let me know, thanks! |
Hi, sorry for my miscommunication. As for me, the algorithm hasn't solved any captcha yet. I tried like 20 different times and all cases returned Not Solved. Do the 4 .jpg work for you? |
These four links are working fine for me, I assume that the problem is connected to how captcha image is displayed in your browser (because Try another class method - Here is the example with those four links: from amazoncaptcha import AmazonCaptcha
links = [
'https://images-na.ssl-images-amazon.com/captcha/bfhuzdtn/Captcha_cebmxydbrt.jpg',
'https://images-na.ssl-images-amazon.com/captcha/perumqgc/Captcha_gaommpndkq.jpg',
'https://images-na.ssl-images-amazon.com/captcha/rhnrlggh/Captcha_tijaodpupx.jpg',
'https://images-na.ssl-images-amazon.com/captcha/bysppkyq/Captcha_xroxbnvmrg.jpg'
]
for link in links:
captcha = AmazonCaptcha.fromlink(link)
print(captcha.solve()) |
So, in your code, when you are on the page with captcha, instead of using Here is the example of what I mean: from webdriver_manager.chrome import ChromeDriverManager
from amazoncaptcha import AmazonCaptcha
from selenium import webdriver
driver = webdriver.Chrome(ChromeDriverManager().install())
driver.get('https://www.amazon.com/errors/validateCaptcha')
captcha_link = driver.page_source.split('<img src="')[1].split('">')[0] # extract captcha link
captcha = AmazonCaptcha.fromlink(captcha_link) # pass it to `fromlink` class method
print(captcha.solve()) |
Perfect solution and explanation. Just tested it. Works like a charm. Thank you very much! |
not solved
Not solved
while using fromdriver
Not solved
while using fromdriver
Not solved
while using fromdriver
class method
Not solved
while using fromdriver
class methodNot solved
while using fromdriver
No problems, have a great day! |
This solution also worked for me! Thank You |
I was hitting the same. @Dohzer43 @longinteger017 can you verify if you are using a high DPI monitor with DPI scaling? In my case the problem seems to be that in
But because my monitor is configured for high dpi + dpi scaling, the coordinates were not matching to the PNG captured. Multiplying everything by 2, solved the issue. |
The following keeps returning Not solved for me. I have never got any other return.
not-solved-captcha.log:
https://images-na.ssl-images-amazon.com/captcha/bfhuzdtn/Captcha_cebmxydbrt.jpg
https://images-na.ssl-images-amazon.com/captcha/perumqgc/Captcha_gaommpndkq.jpg
https://images-na.ssl-images-amazon.com/captcha/rhnrlggh/Captcha_tijaodpupx.jpg
https://images-na.ssl-images-amazon.com/captcha/bysppkyq/Captcha_xroxbnvmrg.jpg
The text was updated successfully, but these errors were encountered: