Metadata-Version: 2.1
Name: charlotte
Version: 0.2.3
Summary: Lightweight and expandable spider framework.
Home-page: https://github.com/Jack-Kingdom/charlotte
Author: Jack King
Author-email: email@qiaohong.org
License: MIT
Description: # charlotte
        
        [![Build Status](https://travis-ci.com/Jack-Kingdom/charlotte.svg?branch=master)](https://travis-ci.com/Jack-Kingdom/charlotte)
        
        Lightweight and expandable spider framework.
        
        ## Install
        ```shell
        pip install charlotte
        ```
        
        ## Example
        
        ```python
        import json
        import asyncio
        from charlotte.spider import BaseSpider
        
        
        import json
        import asyncio
        from charlotte.spider import BaseSpider
        
        
        class Spider(BaseSpider):
        
            async def on_start(self):
                response = await self.fetch('https://blog.qiaohong.org/api/v1/articles')
        
                items = json.loads(response.body)
        
                await asyncio.wait(
                    [self.fetch('https://blog.qiaohong.org/api/v1/articles/' + item['slug'],
                                parser=self.parse_detail) for item in items['data']['articles']])
        
            def parse_detail(self, res):
                print(res.body.decode('utf-8'))
        
        
        if __name__ == '__main__':
            Spider().run()
        
        
        
        ```
        
        ## Documentation
        Check [wiki](https://github.com/Jack-Kingdom/charlotte/wiki) for details.
        
        ## LICENSE
        MIT
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Natural Language :: English
Description-Content-Type: text/markdown
