ad-m / ad-m/python-anticaptcha

Passing Token

Đang mở
#76 7 bình luận 0 reaction 0 người được giao Xem trên GitHub
selenium-callback
Ngôn ngữ chính
Python
Star
230
Fork
53
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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?

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.