Home > database >  BYPASS captcha during exploration of website,using selenium
BYPASS captcha during exploration of website,using selenium

Time:11-20

i'm trying to use the search engine of a website, but captcha blocks me continuously. Is there any way to perform search?

driver = webdriver.Firefox()
driver.implicitly_wait(10) # seconds 
driver.get("https://www.autodoc.pl/")

query ='H317W01'
driver.find_element(By.ID, "search").send_keys(query)
driver.find_element(By.ID, "search").send_keys(Keys.ENTER)

CodePudding user response:

Captchas are implemented to block bots. Selenium is a bot.

Bypassing captchas is practically impossible, unless you control the website containing the captcha.

CodePudding user response:

You would need to load the picture data as per Download image with selenium python and analyze it with some OCR software (e.g. for Python, there's pytesseract).

But CAPTCHAs, by design, are composed in a way that defeats current OCR software, so brute-force recognition will most definitely produce garbage. You'll probably have to fine-tune or adapt that software and/or do some custom preprocessing of the image to ignore or filter out the noise added by the specific CAPTCHA for the software to be able to read the symbols.

  • Related