-
Notifications
You must be signed in to change notification settings - Fork 51
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
Passing Token #76
Comments
I can not reproduce captcha challenge. Could you verify result when you adapt callback sniffer (see https://github.com/ad-m/python-anticaptcha/blob/master/examples/recaptcha_selenium_callback.py )? |
The problem is that the captcha only appears after several requests of the above type. Hence, it is hard to reproduce.
I am not sure how to adapt the example. If I interpret the code correctly, you are passing the token twice. The first time by setting the content of
and the second time by calling
The problem is that the page that I am getting has no element selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot read property '0' of undefined I guess the object If I just execute the first comment (setting the response) and then submit the form by calling
I get the error selenium.common.exceptions.JavascriptException: Message: javascript error: Invalid or unexpected token |
I tried to get a reproducible captcha and came up with the following request https://scholar.google.com/scholar?cites=12685256029779217548&as_sdt=2005&sciodt=0,5&hl=en&num=20 The argument I tried adapting the code from recaptcha_selenium_callback.py and ended up with the following code
The code runs without any errors. However, the display in the browser window does not change and also the variable result still contains the captcha page. Where did I go wrong? |
@davidwozabal , could you provide code to reproduce captcha challenge? I do not receive the captcha challenge at the address provided. If I receive such a code - I will be able to analyze the problem more effectively. |
The link https://scholar.google.com/scholar?cites=12685256029779217548&as_sdt=2005&sciodt=0,5&hl=en&num=20 above produces a captcha challenge for me (even if I open it from a normal browser from different computers). |
please help me regarding this issue based on recaptcha |
Found the solution for the problem |
I am trying to use the library on captchas that I get with Google-Scholar when trying to get citing papers for a source. A typical URL looks like
https://scholar.google.com/scholar?cites=12685256029779217548&as_sdt=2005&sciodt=0,5&hl=en
which if fetched with python sometimes produces a captcha. The HTML code of the captcha site contains the following tags, which seem to be relevant for the use of the anticaptcha library:
I had a look at recaptcha_selenium.py. However, the above HTML code does not contain the function
onSuccess()
and my attempts to construct another function call such asdriver.execute_script("document.getElementById('gs_captcha_f').submit({})';".format(token))
did not yield anything.
Is there a way to deal with the situation above using the anticaptcha library?
The text was updated successfully, but these errors were encountered: