Skip to content

A selenuim module to automaticly solve reCaptcha

Notifications You must be signed in to change notification settings

ImHD2k/bycaptcha

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bycaptcha

A selenuim module to automaticly solve reCaptcha.

Installation

Use the package manager pip to install bycaptcha.

pip3 install bycaptcha

Usage

import bycap
from selenium import webdriver

browser = webdriver.Firefox()
browser.get('https://google.com/recaptcha/api2/demo')

bycap.checkForRecapcha(browser) # Return 1 if there is a captcha, and 0 if there is not.

bycap.resolveCaptcha(browser) # Return 0 if solve, 1 if is block and 2 if is already solve.

Exemple

import bycap
from time import sleep
from selenium import webdriver

browser = webdriver.Firefox()

browser.get('https://google.com/recaptcha/api2/demo')
    print('Searching for captcha...')
    if bycap.checkForRecapcha(browser) == 1:
        print('Captcha found ! Trying to solve...')
        sleep(1)
        captcha = 1
        while captcha != 0:
            captcha = bycap.resolveCaptcha(browser)
            if captcha == 1:
                print('Captcha is block!')
            elif captcha == 0:
                print('Captcha is solve!')

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A selenuim module to automaticly solve reCaptcha

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages