ad-m / ad-m/python-anticaptcha

Passing Token

未关闭
#76 7 条评论 0 个 reaction 已指派 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 摘要。