Metadata-Version: 1.1
Name: grab
Version: 0.6.13
Summary: Web Scraping Framework
Home-page: http://grablib.org
Author: Gregory Petukhov
Author-email: lorien@lorien.name
License: MIT
Description: Grab
        ====
        
        .. image:: https://travis-ci.org/lorien/grab.png?branch=master
            :target: https://travis-ci.org/lorien/grab?branch=master
        
        .. image:: https://coveralls.io/repos/lorien/grab/badge.svg?branch=master
            :target: https://coveralls.io/r/lorien/grab?branch=master
        
        .. image:: https://pypip.in/download/grab/badge.svg?period=month
            :target: https://pypi.python.org/pypi/grab
        
        .. image:: https://pypip.in/version/grab/badge.svg
            :target: https://pypi.python.org/pypi/grab
        
        .. image:: https://landscape.io/github/lorien/grab/master/landscape.png
           :target: https://landscape.io/github/lorien/grab/master
        
        .. image:: https://readthedocs.org/projects/grab/badge/?version=latest
            :target: http://docs.grablib.org/en/latest/
        
        
        What is Grab?
        -------------
        
        Grab is a python web scraping framework. Grab provides tons of helpful methods
        to scrape web sites and to process the scraped content:
        
        * Automatic cookies (session) support
        * HTTP and SOCKS proxy with and without authorization
        * Keep-Alive support
        * IDN support
        * Tools to work with web forms
        * Easy multipart file uploading
        * Flexible customization of HTTP requests
        * Automatic charset detection
        * Powerful API of extracting info from HTML documents with XPATH queries
        * Asynchronous API to make thousands of simultaneous queries. This part of
          library called Spider and it is too big to even list its features
          in this README.
        * Python 3 ready
        
        
        Grab Example
        ------------
        
        .. code:: python
        
            from grab import Grab
        
            g = Grab()
            g.go('https://github.com/login')
            g.set_input('login', 'lorien')
            g.set_input('password', '***')
            g.submit()
            for elem in g.doc.select('//ul[@id="repo_listing"]/li/a'):
                print('%s: %s' % (elem.text(), elem.attr('href')))
        
        
        
        Grab::Spider Example
        --------------------
        
        .. code:: python
        
            from grab.spider import Spider, Task
            import logging
        
            class ExampleSpider(Spider):
                def task_generator(self):
                    for lang in ('python', 'ruby', 'perl'):
                        url = 'https://www.google.com/search?q=%s' % lang
                        yield Task('search', url=url)
                
                def task_search(self, grab, task):
                    print(grab.doc.select('//div[@class="s"]//cite').text())
        
        
            logging.basicConfig(level=logging.DEBUG)
            bot = ExampleSpider()
            bot.run()
        
        
        Installation
        ------------
        
        Pip is recommended way to install Grab and its dependencies:
        
        .. code:: bash
        
            $ pip install -U grab
        
        See details here http://docs.grablib.org/en/latest/usage/installation.html
        
        
        Documentation and Help
        ----------------------
        
        Documentation: http://docs.grablib.org/en/latest/
        
        English mailing list: http://groups.google.com/group/grab-users/
        
        Russian mailing list: http://groups.google.com/group/python-grab/
        
        
        Contribution
        ============
        
        To report a bug please use github issue tracker: https://github.com/lorien/grab/issues
        
        If you want to develop new feature in Grab please use issue tracker to
        describe what you want to do or contact me at lorien@lorien.name
        
Keywords: pycurl multicurl curl network parsing grabbing scraping lxml xpath data mining
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP
