Skip to main content

Installation:

  1. Package:

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

$ cd antigate && sudo python setup.py install

OR

$  sudo pip install antigate

Usage:

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

if you want send abuse to do not matching result, use abuse method.

Example:

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

After all manipulations, you can get your balance:

>>> print gate.balance()

Or full statistic:

>>> print gate.stats()

System load:

>>> print gate.load()

Customize grab preferences:

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

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)
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)
Multi 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])

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.2.tar.gz (3.1 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for antigate-1.2.tar.gz
Algorithm Hash digest
SHA256 bd2d689eeb12092a42c180da4148bac15b576cce9e9e5bb8b127722275696947
MD5 094a3d872ead9d41565bd4d298203dd9
BLAKE2b-256 cb5eca90ea40a39c8b2d09b78b917064ea42f07f51f3f67ecd098d317142db1c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.0

2 files

1.3.4

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

This release

1.2 This release

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