Metadata-Version: 1.1
Name: python-anticaptcha
Version: 0.1.0
Summary: Client library for solve captchas with Anticaptcha.com support.
Home-page: https://github.com/ad-m/python-anticaptcha
Author: Adam Dobrawy
Author-email: anticaptcha@jawnosc.tk
License: MIT
Description: python-anticaptcha
        ==================
        
        .. image:: https://www.quantifiedcode.com/api/v1/project/7cd53291667641eeb92063ad3f61f40e/badge.svg
          :target: https://www.quantifiedcode.com/app/project/7cd53291667641eeb92063ad3f61f40e
          :alt: Code issues
          
        .. image:: https://img.shields.io/pypi/v/python-anticaptcha.svg
          :target: https://pypi.org/project/python-anticaptcha/
          :alt: Python package
         
        Client library for solve captchas with Anticaptcha.com support. The library supports both Python 2.7 and Python 3.
        
        Getting Started
        ---------------
        
        Install as standard for Python packages using::
        
            pip install python-anticaptcha
        
        Usage
        -----
        
        To use this library do you need `Anticaptcha.com`_ API key.
        
        Recaptcha
        #########
        
        Example snippet for Recaptcha:
        
        .. code:: python
        
            from python_anticaptcha import AnticaptchaClient, NoCaptchaTaskProxylessTask
        
            api_key = '174faff8fbc769e94a5862391ecfd010'
            site_key = '6Le-wvkSAAAAAPBMRTvw0Q4Muexq9bi0DJwx_mJ-'  # grab from site
            url = 'https://www.google.com/recaptcha/api2/demo'
        
            client = AnticaptchaClient(api_key)
            task = NoCaptchaTaskProxylessTask(url, site_key)
            job = client.createTask(task)
            job.join()
            print job.get_solution_response()
        
        The full integration example is available in file ``examples/recaptcha.py``.
        
        Text captcha
        ############
        
        Example snippet for text captcha:
        
        .. code:: python
        
            from python_anticaptcha import AnticaptchaClient, ImageToTextTask
        
            api_key = '174faff8fbc769e94a5862391ecfd010'
            captcha_fp = open('examples/captcha_ms.jpeg', 'rb')
            client = AnticaptchaClient(api_key)
            task = ImageToTextTask(captcha_fp)
            job = client.createTask(task)
            job.join()
            print job.get_captcha_text()
        
        Funcaptcha
        ##########
        
        Example snippet for funcaptcha:
        
        .. code:: python
        
            from python_anticaptcha import AnticaptchaClient, FunCaptchaTask, Proxy
            UA = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 ' \
                 '(KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'
        
            api_key = '174faff8fbc769e94a5862391ecfd010'
            site_key = 'DE0B0BB7-1EE4-4D70-1853-31B835D4506B'  # grab from site
            url = 'https://www.google.com/recaptcha/api2/demo'
            proxy = Proxy.parse_url("socks5://login:password@123.123.123.123")
        
            client = AnticaptchaClient(api_key)
            task = FunCaptchaTask(url, site_key, proxy=proxy, user_agent=user_agent)
            job = client.createTask(task)
            job.join()
            print job.get_token_response()
        
        
        Versioning
        ----------
        
        We use `SemVer`_ for versioning. For the versions available, see the
        `tags on this repository`_.
        
        Authors
        -------
        
        -  **Adam Dobrawy** - *Initial work* - `ad-m`_
        
        See also the list of `contributors`_ who participated in this project.
        
        License
        -------
        
        This project is licensed under the MIT License - see the `LICENSE.md`_
        file for details
        
        .. _Anticaptcha.com: http://getcaptchasolution.com/ewfhjk64ll
        .. _SemVer: http://semver.org/
        .. _tags on this repository: https://github.com/ad-m/python-anticaptcha/tags
        .. _ad-m: https://github.com/ad-m
        .. _contributors: https://github.com/ad-m/python-anticaptcha/contributors
        .. _LICENSE.md: LICENSE.md
        
Keywords: recaptcha captcha development
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
