ad-m / ad-m/python-anticaptcha

Passing Token

Aperta
#76 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
selenium-callback
Lingua principale
Python
Stelle
230
Fork
53
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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:

```

function gs_captcha_cb(){grecaptcha.render("gs_captcha_c",{"sitekey":"6LfFDwUTAAAAAIyC8IeC3aGLqVpvrB6ZpkfmAibj","callback":function(){document.getElementById("gs_captcha_f").submit()}});};

Please show you're not a robot








```

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 as

`driver.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?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.