gotlium / antigate

Wrapper for online service which provides real-time captcha-to-text decodings. http://anti-captcha.com/
http://antigate.com/
GNU General Public License v3.0
91 stars 21 forks source link

How to correctly pass is_russian? #12

Closed vavoluk closed 8 years ago

vavoluk commented 8 years ago

I had an error with is_russian:

grab.error.GrabMisuseError: Unknown option: is_russian

How to correctly pass is_russian?

gotlium commented 8 years ago
>>> from antigate import AntiGate
>>> config = {'min_len': '3', 'max_len': '5', 'phrase': '2', 'is_russian': '1'}
>>> gate = AntiGate('API-KEY', 'captcha.jpg', send_config=config)

All params you can see at the docs http://antigate.com/?action=api

Antigate.Com API: загрузка капчи > Загрузка: дополнительные параметры капчи [-] там описаны все возможные параметры. включая и те, что я привел в качестве примера в конфиге выше.