ad-m / python-anticaptcha

Client library for solve captchas with Anticaptcha.com support.
http://python-anticaptcha.readthedocs.io/en/latest/
MIT License
222 stars 51 forks source link

reCaptcha Selenium not verifying #27

Closed SamuelLopesSilva closed 5 years ago

SamuelLopesSilva commented 5 years ago

I'm using Selenium / Python to fill out a form, however, I get the answer from the solution but nothing happens in the captcha. I've read both Issues that talk about Selenium integration and tried to use all the codes, but none worked. Can you help me?

site: https://www63.bb.com.br/portalbb/djo/id/comprovante/consultaDepositoJudicial,802,4647,4650,0,1.bbx

image

ad-m commented 5 years ago

Thank you for your message. I will have a look at it at the weekend!

ad-m commented 5 years ago

@SamuelLopesSilva ,could you provide any valid value for that form?

SamuelLopesSilva commented 5 years ago

Try: 081080000021488413

ad-m commented 5 years ago

Here is code for you: https://gist.github.com/ad-m/3f020544553c09a4063e1aab24c8e9ff Let's me know if it works for you.

Recognizing the need for constant support for Selenium, I started working on an example of using a library from Selenium, which I will regularly test to ensure constant and correct operation.

SamuelLopesSilva commented 5 years ago

Thank you! As soon as I get home I'll test and let you know if it worked.

ad-m commented 5 years ago

BTW. Why do you want to use Selenium for scraping that website? Any XML parser should be enought & lot faster.

SamuelLopesSilva commented 5 years ago

I'm newbie and had a very tight deadline and also I need a screenshot of the payment voucher. Anyway, I accept tips and help

SamuelLopesSilva commented 5 years ago

@ad-m It worked! Thank you a lot!

ad-m commented 5 years ago

For anybody which may it concer I added constatly-tested example how to use python_anticaptcha and selenium together: https://github.com/ad-m/python-anticaptcha/blob/master/examples/recaptcha_selenium.py