ad-m / ad-m/python-anticaptcha

Passing Token

オープン
#76 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
selenium-callback
主要言語
Python
スター
230
フォーク
53
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。