Skip to main content
Build Status https://coveralls.io/repos/gotlium/antigate/badge.png?branch=master Python 2.6, 2.7, 3.3, 3.4 Current version on PyPi Downloads from PyPi License

Documentation available at Read the Docs.

Installation

  1. From source:

$ git clone https://github.com/gotlium/antigate.git

$ cd antigate && sudo python setup.py install

OR

$  pip install antigate

Usage

>>> from antigate import AntiGate            # AntiCaptcha
>>> print AntiGate('API-KEY', 'captcha.jpg') # AntiCaptcha('API-KEY', 'captcha.jpg')

If you wish to complain about a mismatch results, use abuse method.

Example:

>>> from antigate import AntiGate
>>> gate = AntiGate('API-KEY', 'captcha.jpg')
>>> print gate
>>> if str(gate) != 'qwerty':
>>>     gate.abuse()

After all manipulations, you can get your balance:

>>> print gate.balance()

Or get your statistics data:

>>> print gate.stats()

Real time system load info:

>>> print gate.load()

Customizing requests to API

Customize grab-lib preferences:

>>> from antigate import AntiGate
>>> config = {'connect_timeout': 5, 'timeout': 60}
>>> gate = AntiGate('API-KEY', 'captcha.jpg', grab_config=config)
>>> print gate

Additional options for sending Captcha:

>>> from antigate import AntiGate
>>> config = {'min_len': '3', 'max_len': '5', 'phrase': '2'}
>>> gate = AntiGate('API-KEY', 'captcha.jpg', send_config=config)
>>> print gate

Disable auto run and use methods manually:

>>> from antigate import AntiGate
>>> gate = AntiGate('API-KEY', auto_run=False)
>>> captcha_id1 = gate.send('captcha1.jpg')
>>> captcha_id2 = gate.send('captcha2.jpg')
>>> print gate.get(captcha_id1)
>>> print gate.get(captcha_id2)

Get results for multiple ids:

>>> gate = AntiGate('API-KEY', auto_run=False)
>>> captcha_id1 = gate.send('captcha1.jpg')
>>> captcha_id2 = gate.send('captcha2.jpg')
>>> print gate.get_multi([captcha_id1, captcha_id2])

Api documentation

https://anti-captcha.com/apidoc / http://antigate.com/?action=api#algo

Compatibility

  • Python: 2.6, 2.7, 3.3, 3.4

Bitdeli badge

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antigate-1.3.4.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antigate-1.3.4-py2-none-any.whl (6.1 kB view details)

Uploaded Python 2

File details

Details for the file antigate-1.3.4.tar.gz.

File metadata

  • Download URL: antigate-1.3.4.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for antigate-1.3.4.tar.gz
Algorithm Hash digest
SHA256 7bd315fad2c8b60771359131e43b7ca7145559338b34dbc4a5d7f2f495bc034e
MD5 4f114b81297e21671b9b6bf4041a804f
BLAKE2b-256 03cb00cf93c95ba6adca5caf7bce1ac8bbb629392c7074ef67c9d47db71e77d0

See more details on using hashes here.

File details

Details for the file antigate-1.3.4-py2-none-any.whl.

File metadata

File hashes

Hashes for antigate-1.3.4-py2-none-any.whl
Algorithm Hash digest
SHA256 af36c83ec238161e54f8a447c74eff0bd54eef81dbd990909b1c6a163e862b87
MD5 faadb4f7f84ea1f08d331bff2666cf20
BLAKE2b-256 b0fe9c7a6f201977e0bdc6bddbdc1253999fb740db41ff1c6f33b5157c45f2ed

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.0

2 files

This release

1.3.4 This release

2 files

1.3.3

2 files

1.3.2

2 files

1.3.1

1 file

1.3

1 file

1.2.1

1 file

1.2

1 file

1.1

1 file

1.0

1 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