Constantly receiving `Not solved` while using `fromdriver`
See original GitHub issueThe following keeps returning Not solved for me. I have never got any other return.
import selenium
from amazoncaptcha import AmazonCaptcha
from selenium import webdriver as webdriver
d = webdriver.Chrome(ChromeDriverManager().install())
captcha = AmazonCaptcha.fromdriver(d)
print(captcha.solve(keep_logs=True))
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
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
I am getting the following error for almost every operation of ...
I am getting the following error for almost every operation of the software: "An error occured and was automatically reported SCRIPT ERROR".
Read more >TPS929120EVM: Fault response from Driver TPS929120 - Power ...
I have been testing and building a solution for automotive applications. ... when I read from the same register, I receive incorrect data...
Read more >Selenium Timed out receiving message from renderer
Solution : When Page Loading takes too much time for wait so we will wait for the DOMContentLoaded event with page load strategy....
Read more >Solved: Failed to get DSM and MPIO properties from driver
I do, I have the Data ONTAP DSM. Looking under the Server Storage where I would expect to see the Active\Passive paths for...
Read more >"Display driver stopped responding and has recovered" error ...
To resolve this issue, follow the steps in the methods starting with method 1 and then proceeding with method 2 and method 3...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
So, in your code, when you are on the page with captcha, instead of using
fromdriver
, firstly extract the captcha image link and then usefromlink
. Since it is the firstimg
at the page, it is not obligatory to use BautifulSoup, but you can do the extraction your way. The main point is to just get the captcha link.Here is the example of what I mean:
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
fromdriver
class method takes a screenshot and then crops the captcha image).Try another class method -
fromlink
. This will use the captcha image link, therefore it will be not relevant how the image is displayed in the browser.Here is the example with those four links: