recaptcha

Integrating anticaptcha with selenium

混江龙づ霸主 提交于 2020-06-26 12:59:17
问题 I am using Selenium/Python to try and fill out a form and than fill out the recaptcha. I found python-anticaptcha and bought $10 in credits, and everything is working, the captcha comes up, but than nothing happens. I tried to look for answers for a few hours/consulted their api and examples, but could not find anything. Ultimately, the captcha should work and then the website would generate a table which I am trying to web-scrape This is what it ends up looking like, but nothing happens and

Google recaptcha remoteip explanation

馋奶兔 提交于 2020-06-16 00:35:32
问题 In the documentation of recaptcha it says that the remoteip argument is optional, but I don't understand its purpose, because even if I send a different IP than REMOTE_ADDR, the response from Google is still a valid captcha. 回答1: It is already asked in Information Security and I will provide the accepted answer here, too. Because it is not clear that it is mainly a security issue: Because there could be a DNS/hosts reroute in place to allow the captcha to be parsed differently by a malicious

Google recaptcha remoteip explanation

孤者浪人 提交于 2020-06-16 00:35:06
问题 In the documentation of recaptcha it says that the remoteip argument is optional, but I don't understand its purpose, because even if I send a different IP than REMOTE_ADDR, the response from Google is still a valid captcha. 回答1: It is already asked in Information Security and I will provide the accepted answer here, too. Because it is not clear that it is mainly a security issue: Because there could be a DNS/hosts reroute in place to allow the captcha to be parsed differently by a malicious

Recaptcha 2.0 error: reCAPTCHA placeholder element must be an element or id

倖福魔咒の 提交于 2020-06-13 07:00:51
问题 I've looked at every other post I could find, and none of them resolved the issue for me. I have a single call to the ReCaptcha API in my document head: <script src="https://www.google.com/recaptcha/api.js?hl=he-IL&onload=onloadCallback&render=explicit" type="text/javascript"></script> And then immediately after var onloadCallback = function() { grecaptcha.render("recaptcha2", { sitekey: "6LendPIUAAAAAGQqB_2tq8fpgdGfBnEQA3v-CB0g", theme: "light" }); }; And I get the following error in my

Recaptcha 2.0 error: reCAPTCHA placeholder element must be an element or id

限于喜欢 提交于 2020-06-13 07:00:41
问题 I've looked at every other post I could find, and none of them resolved the issue for me. I have a single call to the ReCaptcha API in my document head: <script src="https://www.google.com/recaptcha/api.js?hl=he-IL&onload=onloadCallback&render=explicit" type="text/javascript"></script> And then immediately after var onloadCallback = function() { grecaptcha.render("recaptcha2", { sitekey: "6LendPIUAAAAAGQqB_2tq8fpgdGfBnEQA3v-CB0g", theme: "light" }); }; And I get the following error in my

Recaptcha 2.0 error: reCAPTCHA placeholder element must be an element or id

假如想象 提交于 2020-06-13 07:00:11
问题 I've looked at every other post I could find, and none of them resolved the issue for me. I have a single call to the ReCaptcha API in my document head: <script src="https://www.google.com/recaptcha/api.js?hl=he-IL&onload=onloadCallback&render=explicit" type="text/javascript"></script> And then immediately after var onloadCallback = function() { grecaptcha.render("recaptcha2", { sitekey: "6LendPIUAAAAAGQqB_2tq8fpgdGfBnEQA3v-CB0g", theme: "light" }); }; And I get the following error in my

How to identify the 32 bit data-sitekey of ReCaptcha V2 to obtain a valid response programmatically using Selenium and Python Requests?

时光怂恿深爱的人放手 提交于 2020-06-09 04:03:47
问题 Pretty much new with captcha and Python requests. The captcha documentation says to copy the value of data-sitekey parameter. Here was my attempt, using Selenium to open the url and using Python requests to get a response. mainurl = 'https://imagetyperz.xyz/automation/recaptcha-v2.html' driver.get(mainurl) data_sitekey_class = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CLASS_NAME, "g-recaptcha"))).get_attribute("data-sitekey") print(data_sitekey_class) src_css_selector =

How to click on elements within an iframe to enable the captcha through the audio using Selenium and Python

夙愿已清 提交于 2020-06-05 06:16:36
问题 I want to, click on the button to resolve the captcha through the audio, but selenium does not detect the specified "id". browser.get("https://www.google.com/recaptcha/api2/demo") mainWin = browser.current_window_handle iframe = browser.find_elements_by_tag_name("iframe")[0] browser.switch_to_frame(iframe) CheckBox = WebDriverWait(browser, 10).until(EC.presence_of_element_located((By.ID ,"recaptcha-anchor"))).click() sleep(4) audio = WebDriverWait(browser, 10).until(EC.presence_of_element

Ember Octane: ember-g-recaptcha reCaptchaResponse comes back as undefined

社会主义新天地 提交于 2020-05-17 02:59:28
问题 I am upgrading to Ember Octane and I am using ember-g-recaptcha https://www.npmjs.com/package/ember-g-recaptcha. The project README.MD has not been updated to reflect Ember Octane. The reCaptchaResponse in the component js keeps coming back undefined . How do I fix this? I have posted the Ember-Twiddle here https://ember-twiddle.com/509eb1c04c9c7d908d16ba2a2bb39ba5. Note: you will need to provide a sitekey to use it. Thats what I do: <GRecaptcha @size="normal" @sitekey={{this.siteKey}}

Dealing with reCAPTCHA in Python Selenium

不打扰是莪最后的温柔 提交于 2020-05-15 19:45:31
问题 I need to automate a web page using python selenium, but it encounters a reCaptcha, which is in another frame. I want to solve the captcha, and continue the script by clicking the login button, when the reCaptcha has been solved; However, this gets tricky, since a frame is involved, and the frame needs to switch back to the default content. Can anyone help me in this regard? from selenium import webdriver from selenium.webdriver import ActionChains from selenium.webdriver.support import