Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selenium_2captcha_solver-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

selenium_2captcha_solver-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file selenium_2captcha_solver-0.1.1.tar.gz.

File metadata

  • Download URL: selenium_2captcha_solver-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.1 CPython/3.11.0 Darwin/22.5.0

File hashes

Hashes for selenium_2captcha_solver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8b4e828e4c52bbcf87945286db16b389b39fcc2aaa0dfc285219f9e55a8a51e4
MD5 c6848e7747912d0386d8a042a63ac9be
BLAKE2b-256 7bae263bb11ee4f4f68d10cbd8861e028320c80a51560c924e958bec43bdee62

See more details on using hashes here.

File details

Details for the file selenium_2captcha_solver-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for selenium_2captcha_solver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47ac0f64a0dfe4b9e7e15af3f3082f281eecd99c22857a9a14027808b1a88241
MD5 f89ee4d2aac48e2e3286cefedd2194f3
BLAKE2b-256 176d3d91750dc7c412c6e4910432a2960a1e7d1e5cbceb28806490923d56a87a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page