Skip to main content

captcha-manager

captchamanager abstracts captcha token retrieval.

Motivation

Some programs may require the retrieval of valid captcha tokens. Often, this is accomplished through services like 2Captcha that return a valid token given an API key and the challenge site key. captchamanager abstracts this functionality so programs can receive a single token or can load a queue of tokens. Tokens are represented by their value, generation time, and expiration time.

Note

Currently, captchamanager only supports 2Captcha.

Installation

captchamanager is available via pip

$ pip install captcha-manager

Usage

from captchamanager import CaptchaManager

TWO_CAPTCHA_API_KEY = 'ABC123'
SITE_KEY = 'DEF456'
PAGE_URL = 'https://example.com'
captcha_manager = CaptchaManager(TWO_CAPTCHA_API_KEY, SITE_KEY, PAGE_URL)
token = captcha_manager.get_captcha_token() # Returns a single token ASAP

captcha_manager.start_captcha_queue()
# Do something
token = captcha_manager.wait_for_captcha_token() # Returns one valid token from queue

Metadata

Release files for captcha-manager 0.0.2.1

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

Source distribution (sdist)

Source distribution for captcha-manager 0.0.2.1
File Size Uploaded Provenance
captcha-manager-0.0.2.1.tar.gz 3.2 kB Without provenance Details

Release files / captcha-manager-0.0.2.1.tar.gz

Download URL captcha-manager-0.0.2.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
790ce98bb8f086fbaa13bb17cfa993cec77747691177c5fdcbd8126b87d2fdc3
BLAKE2b-256 checksum
How to use checksums
47a741145d502891605b5711e0fa7f96e1df7bd9cbd1e11f7331c50eab2f8f2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for captcha-manager 0.0.2.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.

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