Skip to main content
TwoCaptcha
==========

2Captcha Python3 API Wrapper

Prerequisites
-------------

You will need a ``2Captcha API Key`` which can be found `here`_ after
registering for 2Captcha on https://2captcha.com

Usage
-----

TwoCaptcha
~~~~~~~~~~

.. code:: py

from twocaptcha import TwoCaptcha

API_KEY = 'YOUR_API_KEY_HERE'
twoCaptcha = TwoCaptcha(API_KEY)

TwoCaptcha.solve\_captcha
~~~~~~~~~~~~~~~~~~~~~~~~~

.. code:: py

page_url = 'http://www.example.com'
site_key = '6Le4AQgUAAAAAABhHEq7RWQNJwGR_M-6Jni9tgtA'
captcha_token = twoCaptcha.solve_captcha(site_key=site_key, page_url=page_url)
print(captcha_token) # Ex. '03AE...'

TwoCaptcha.get\_balance
~~~~~~~~~~~~~~~~~~~

.. code:: py

balance = twoCaptcha.get_balance()
print(balance) # Ex. '6.11472'

TODO:
-----

- [ ] proxy support
- [ ] poll interval
- [ ] request error handling
- [ ] request unblocking
- [ ] unit tests

.. _here: https://2captcha.com/setting

Metadata

Release files for TwoCaptcha 0.0.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 TwoCaptcha 0.0.1
File Size Uploaded
TwoCaptcha-0.0.1.tar.gz 2.9 kB Details

Release files / TwoCaptcha-0.0.1.tar.gz

Download URL TwoCaptcha-0.0.1.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fd04127de71ca4bd31c22add84a5bcb7c683cf9ee5bf503ca14a8f372ac76a0e
BLAKE2b-256 checksum
How to use checksums
fe2a423a536af707f4f8938176ed260e39f0612f846ee1d053b087a66ac2b961
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.1 This release

1 release file

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