Giter Site home page Giter Site logo

charlespikachu / hackcaptcha Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 8.0 80.36 MB

provide api functions for captcha recognition.

Home Page: https://hackcaptcha-en.readthedocs.io/zh/latest/

License: MIT License

Python 100.00%
captcha captcha-solving 12306 captcha-solver

hackcaptcha's Introduction

hackcaptcha

Provide api functions for captcha recognition, this repo is created mainly for https://github.com/CharlesPikachu/DecryptLogin
You can star this repository to keep track of the project if it's helpful for you, thank you for your support.

Documents

in Chinese

https://hackcaptcha-en.readthedocs.io/zh/latest/

in English

https://hackcaptcha-en.readthedocs.io/en/latest/

Support List

Captcha Type Number of supported algorithms Number of supported webapis in Chinese
Slider 1 0 滑块验证码
Digital 0 1 数字验证码
Click 1 0 点击验证码

Install

Pip install

run "pip install hackcaptcha"

Source code install

(1) Offline
Step1: git clone https://github.com/CharlesPikachu/hackcaptcha.git
Step2: cd hackcaptcha -> run "python setup.py install"
(2) Online
run "pip install git+https://github.com/CharlesPikachu/hackcaptcha.git@master"

Quick Start

hack captcha by algorithms

from hackcaptcha.crackers import AlgorithmsCracker

cracker = AlgorithmsCracker()
# slider captcha
infos_return = cracker.slider(imagepath='CAPTCHA IMAGE PATH', algorithm_type='canny')
# digital captcha
# click captcha
infos_return = cracker.click(imagepath='CAPTCHA IMAGE PATH', algorithm_type='zt12306', text_model_path='text.h5', object_model_path='object.h5')

hack captcha by webapis

from hackcaptcha.crackers import WebapisCracker

cracker = WebapisCracker()
# slider captcha
# digital captcha
infos_return = cracker.digital(imagepath='CAPTCHA IMAGE PATH', webapi_type='baidu', app_id='AppID', api_key='API Key', secret_key='Secret Key')
# click captcha

References

[1]. https://github.com/zhaipro/easy12306

More

WeChat Official Accounts

Charles_pikachu
img

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.