8000 GitHub - logtcn/easy_captcha_solver: Captcha solver gem for very easy ones. Don't expect it to solve Recaptcha or similar
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

logtcn/easy_captcha_solver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy Captcha Solver Gem

A captcha solver for really easy ones (don't expect it to solve recaptcha or any similar)

Tested with Ruby 2.0

Installation

gem install 'easy_captcha_solver'

Requirements

  • Install Tesseract #=> brew install tesseract
  • gem install 'tesseract-ocr'
  • gem install 'mechanize'

Tesseract

This gem uses Tesseract to read captchas, so obviously first of all you will need to install it.

Using the gem

Solve a captcha using an URL with image_url:

require 'easy_captcha_solver'

easy_c = EasyCaptchaSolver.new(image_url: "http://www.madrid.org/infi_pub/html/web/CargarCaptchaAccion.icm?idCaptcha=")
easy_c.captcha #=> "ABCDE"

You can also solve a captcha from your local using image_path:

require 'easy_captcha_solver'

easy_c = EasyCaptchaSolver.new(image_path: "./captcha_img.jpg")
easy_c.captcha #=> "ABCDE"

Contributing

If you'd like to contribute fork the project, make your changes and then send a pull request.

Contact

Comments and feedback are welcome.

License

This code is free to use under the terms of the MIT license.

About

Captcha solver gem for very easy ones. Don't expect it to solve Recaptcha or similar

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%
0