ad-m / ad-m/python-anticaptcha

Passing Token

Ouverte
#76 7 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
selenium-callback
Langage dominant
Python
Étoiles
230
Forks
53
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.