No project description provided
Project description
Selenium 2CAPTCHA solver
Usage
from selenium_2captcha_solver import solve_recaptchav2
from twocaptcha import TwoCaptcha
from selenium import webdriver
from selenium.webdriver.common.by import By
# Create TwoCaptcha instance
two_captcha = TwoCaptcha(apiKey="2CAPTCHA_API_KEY")
# Create selenium driver instance and open page with captch you need to solve
driver = webdriver.Chrome()
driver.get("https://www.google.com/recaptcha/api2/demo")
# Find recaptcha element
recaptcha_element = driver.find_element(By.CLASS_NAME, 'g-recaptcha')
# Call the solve_recaptchav2
solve_recaptchav2(two_captcha, driver, recaptcha_element)
# And submit your form or anything else
driver.find_element(By.ID, "recaptcha-demo-submit").click()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for selenium_2captcha_solver-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b4e828e4c52bbcf87945286db16b389b39fcc2aaa0dfc285219f9e55a8a51e4 |
|
MD5 | c6848e7747912d0386d8a042a63ac9be |
|
BLAKE2b-256 | 7bae263bb11ee4f4f68d10cbd8861e028320c80a51560c924e958bec43bdee62 |
Close
Hashes for selenium_2captcha_solver-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47ac0f64a0dfe4b9e7e15af3f3082f281eecd99c22857a9a14027808b1a88241 |
|
MD5 | f89ee4d2aac48e2e3286cefedd2194f3 |
|
BLAKE2b-256 | 176d3d91750dc7c412c6e4910432a2960a1e7d1e5cbceb28806490923d56a87a |