Rumola is a browser extension that can bypass certain types of CAPTCHA tests. It is designed to solve captchas where the user needs to type in words, numbers, or solve math problems. Rumola reads the letters and numbers and puts them in the box for the user. However, Rumola cannot solve Google Recaptchas or image-based captchas. Rumola is a paid service, and the first installation gives users five free credits to test the service.
2captcha is a captcha solving service that can bypass various types of captchas, including reCAPTCHA, hCaptcha, Arkose captcha, and Geetest. The service provides low prices and high accuracy for solving captchas. 2captcha offers an API that can be integrated with Python, C#, and other programming languages. The process of solving captchas using 2captcha involves sending the necessary parameters from the page of its placement to the 2captcha server, where it is solved by an employee with the appropriate "humanity" rating. The response is then returned to the user in the form of a token, which must be entered into the appropriate field to solve the captcha.
Here is a step-by-step guide on how to bypass reCAPTCHA using 2captcha and Selenium:
- Install the required components, including the 2Captcha Python SDK and Selenium.
- Find the site key parameter of the reCAPTCHA challenge on the target webpage.
- Solve the reCAPTCHA using the 2captcha API.
- Submit the solved captcha.
Here is an example code snippet in Python that demonstrates how to bypass reCAPTCHA using 2captcha and Selenium:
# Instantiate the WebDriver
driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager().install()))
# Load the target page
captcha_page_url = "https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php"
driver.get(captcha_page_url)
# Solve the Captcha
print("Solving Captcha")
solver = TwoCaptcha("2CAPTCHA_API_KEY")
response = solver.recaptcha(sitekey='SITE_KEY', url=captcha_page_url)
code = response['code']
print(f"Successfully solved the Captcha. The solve code is {code}")
# Set the solved Captcha
recaptcha_response_element = driver.find_element(By.ID, 'g-recaptcha-response')
driver.execute_script("arguments[0].setAttribute('style', 'display: block;')", recaptcha_response_element)
recaptcha_response_element.send_keys(code)
# Submit solved captcha
submit_button = driver.find_element_by_id("submit")
submit_button.click()
It is important to note that bypassing CAPTCHA tests is against the terms of service of most websites and can result in legal action. Additionally, using 2captcha to bypass CAPTCHA tests can be expensive, and the service may not always work effectively.