captcha-url-reader
Simple package: user passes captcha image URL, package reads and returns text.
Install
pip install -e .
Usage
from captcha_image_reader import read_captcha_from_url
# Default mode (recommended for Amazon-style captchas)
captcha_text = read_captcha_from_url("https://images-na.ssl-images-amazon.com/captcha/sgkknrsj/Captcha_iwrdailhkf.jpg")
if captcha_text:
print(f"CAPTCHA text extracted: {captcha_text}")
else:
print("No text extracted from image URL.")
Overlap-heavy captcha mode
Use forced overlap mode only when text is merged/overlapping and default mode is not accurate.
from captcha_image_reader import read_captcha_from_url
captcha_text = read_captcha_from_url(
"https://2captcha.com/dist/web/assets/captcha-rn1S3orp.jpg",
force_overlap_risk=True,
)
When to use which mode
- Use default mode for clean or mostly non-overlapping text (for example, most Amazon captchas).
- Use
force_overlap_risk=Trueonly when characters are merged and default extraction is wrong.
Example scripts
- Default/Amazon style:
examples/read_amazon_default.py - Overlap-heavy style:
examples/read_overlap_captcha.py
Run them directly:
./.venv/bin/python examples/read_amazon_default.py
./.venv/bin/python examples/read_overlap_captcha.py
GPU behavior
- Uses GPU first by default.
- If GPU is not available or fails, automatically falls back to CPU.
Metadata
Release files for captcha-url-reader 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| captcha_url_reader-1.0.1.tar.gz | 6.4 kB | Without provenance | Details for captcha_url_reader-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| captcha_url_reader-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for captcha_url_reader-1.0.1-py3-none-any.whl |
Total release size: 12.6 kB
Release files / captcha_url_reader-1.0.1.tar.gz
| Download URL | captcha_url_reader-1.0.1.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9ea81ee131cd87707072505b1e6be95a358398eae3151ec8d795693ef09d083
|
|
BLAKE2b-256 checksum How to use checksums |
b4f431442ff90a47c4d94ac5d070fa3fe9b39e614573ac67e5ae31634692552f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Release files / captcha_url_reader-1.0.1-py3-none-any.whl
| Download URL | captcha_url_reader-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86392cca147ee5200928a5e86a40581d20d4edd4b4c74f7c79636aedaf9661e8
|
|
BLAKE2b-256 checksum How to use checksums |
a7ab8887f807894fcdad7777e514ff0960fc30a85eddb7bcbd8291cd5cc96cc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.4
|
Security for captcha-url-reader 1.0.1
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.