Skip to main content

Amazon Captcha Solver

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

Motivation behind creation of this library is taking its start from the genuinely simple concept: "I don't want to use pytesseract or some other non-amazon-specific OCR services, neither do I want to install some executables to just solve a captcha. My desire is to get a solution within 1-2 lines of code without any heavy add-ons. Using a pure Python."

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 CodeFactor Grade Implementation

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 'Not solved' output, feel free to create an issue and describe details.
  • If you received an output, different from solution itself 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 - 0.1.5:
    1. Code adjustments and improvements.
    2. Added tests.
  • Version 0.2.0:
    1. Second crash test through 120k+ captchas.
    2. Accuracy increased to 99.1%
    3. Code coverage is 100%
  • Version 0.3.0:
    1. Program can now solve images where letters are intercepted.
    2. Third crash test through 140k+ captchas.
    3. Accuracy increased to 99.998%

Metadata

Release files for amazoncaptcha 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for amazoncaptcha 0.3.2
File Size Uploaded Provenance Actions
amazoncaptcha-0.3.2.tar.gz 870.0 kB Without provenance Details for amazoncaptcha-0.3.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for amazoncaptcha 0.3.2
File Interpreter ABI Platform Actions
amazoncaptcha-0.3.2-py3-none-any.whl Python 3 none any Details for amazoncaptcha-0.3.2-py3-none-any.whl

Total release size: 1.8 MB

Release files / amazoncaptcha-0.3.2.tar.gz

Download URL amazoncaptcha-0.3.2.tar.gz
Size 870.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a4202ffdf1db13e1608ddbcd551247a26fce4993f7f1831214f65c0532785523
BLAKE2b-256 checksum
How to use checksums
a0c34227f0cf72d08fd562f409e5f54d13fc7c0c9ccc23a4aac31eb9ba0c761e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.7.4

Release files / amazoncaptcha-0.3.2-py3-none-any.whl

Download URL amazoncaptcha-0.3.2-py3-none-any.whl
Size 930.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63764063631e41b5a7557233f7788cdc3e8747b6ab95ab481ab8b91ab9cbb9ae
BLAKE2b-256 checksum
How to use checksums
3300505baf6c569041bbed0c8f84d1d9d350dfb461600af256598e1a2d9a3405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.1.0 requests-toolbelt/0.9.1 tqdm/4.44.0 CPython/3.7.4

Security for amazoncaptcha 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.3.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page