Documentation available at Read the Docs.
Installation
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file antigate-1.3.3.tar.gz.
File metadata
- Download URL: antigate-1.3.3.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4f21b3632bd2c433bf8376531c7cfea330045ec6ad38b66f14fb9124601fd65
|
|
| MD5 |
4e7e7ad87ef98c3a28c35cb21194015e
|
|
| BLAKE2b-256 |
c8e5f2f650db4645dae6c774cd04dd6a0de9c0c326cf7adcb4c6588a2449bfc8
|
File details
Details for the file antigate-1.3.3-py2-none-any.whl.
File metadata
- Download URL: antigate-1.3.3-py2-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c16820947c61889f7824f501032aef0e1f9afac2cc9c8bb3964a12cb01548f10
|
|
| MD5 |
bca9f0813b1f1780b059fce962c1c493
|
|
| BLAKE2b-256 |
f0c8ee0e731761524201d26a8a12cf15492434518d1f97d008a23e978af7f971
|