Skip to content

shaongitbd/recaptcha-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Recaptcha-solver

A simple pluggable recaptcha solver. You can use this script with your selenium script.

Install required packages

pip install -r requirements.txt

How to use?

Singup for IBM cloud Then go here https://cloud.ibm.com/catalog/services/speech-to-text and hit create

You Will get a Api key and url address like follwing

image

Replace the api on recaptcha-solver.py on line 11 and 12 with your own api

apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
url = 'https://api.us-south.speech-to-text.watson.cloud.ibm.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

Import these before using it on your own script

from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException
from recaptcha_solver import *

# Now use next line of code on captcha page.

solver(driver,WebDriverWait,EC,By,NoSuchElementException)

Example:

import undetected_chromedriver as webdriver
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.common.exceptions import NoSuchElementException
from recaptcha_solver import *

chrome_options = webdriver.ChromeOptions()


driver = webdriver.Chrome()
driver.get("https://www.google.com/recaptcha/api2/demo")
solver(driver,WebDriverWait,EC,By,NoSuchElementException)
time.sleep(10000)
driver.close

About

A simple pluggable Recaptcha solver.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages