Skip to main content

Solving captchas never ends...

Project description

Amazon Captcha Solver

Pure Python (3.6+), lightweight, Pillow-based solver for the Amazon's text captcha.

Accuracy Timing Size Version Python version Downloads

Installation

pip install amazoncaptcha

Quick Snippet

from amazoncaptcha import AmazonCaptcha

captcha = AmazonCaptcha('captcha.jpg')
solution = captcha.solve()

# Or: solution = AmazonCaptcha('captcha.jpg').solve()

Status

Status Build Status codecov Requirements Status Known Vulnerabilities CodeFactor Grade

Popular Usage

from amazoncaptcha import AmazonCaptcha
from selenium import webdriver

driver = webdriver.Chrome()
driver.get('https://www.amazon.com/errors/validateCaptcha')

captcha = AmazonCaptcha.from_webdriver(driver)
solution = captcha.solve()

For Whom?

  • Data extraction and web scraping specialists could use this tool, obviously, to bypass the Amazon captcha.
  • Machine learning developers could use captchas folder (currently contains 15000 solved captchas) based on a demand.

Issues

  • If you constantly receive 'Error' output, feel free to create an issue and describe details.
  • If you received an output, different from solution itself, 'Error' or 'Not solved', please, create an issue or contact me.
  • If you've somehow met an Exception, which you don't understand - you know what to do :)

Changes

  • Version 0.0.10:
    1. Reached 10000 training samples.
    2. Reached 90%+ accuracy.
  • Version 0.0.11:
    1. Fixed error with captcha images that were taken from BytesIO.
  • Version 0.0.12:
    1. Code adjustments and improvements.
    2. Program can now solve images where last letter is corrupted.
  • Version 0.0.13:
    1. Added and tested 'from_webdriver' classmethod.
  • Version 0.1.0:
    1. 100,000 captchas crash test, accuracy is 98.5%.
  • Version 0.1.1:
    1. Code adjustments and improvements.
    2. Added tests.
  • Version 0.1.3:
    1. Code adjustments and improvements.
    2. Added vulnerabilities tests.
  • Version 0.1.4:
    1. Code adjustments and improvements.
    2. Added more tests.

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

amazoncaptcha-0.1.4.tar.gz (866.2 kB view hashes)

Uploaded Source

Built Distribution

amazoncaptcha-0.1.4-py3-none-any.whl (926.4 kB view hashes)

Uploaded Python 3

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