Skip to content

Commit

Permalink
Typo and Usage
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotgao2 committed Jun 19, 2017
1 parent 56e556f commit 74043a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions README.md
Expand Up @@ -5,8 +5,7 @@
[![Version](https://img.shields.io/pypi/v/gain.svg)](https://pypi.python.org/pypi/gain/)
[![License](https://img.shields.io/pypi/l/gain.svg)](https://pypi.python.org/pypi/gain/)

Web crawling framework for everyone. Written with asyncio, uvloop and aiohttp.
Everyone could write their own web crawler easily with gain framework. Gain framework provide a pretty simple api.
Web crawling framework for everyone. Written with `asyncio`, `uvloop` and `aiohttp`.

![](img/architecture.png)

Expand All @@ -26,15 +25,15 @@ Everyone could write their own web crawler easily with gain framework. Gain fram

```python
from gain import Css, Item, Parser, Spider

import aiofiles

class Post(Item):
title = Css('.entry-title')
content = Css('.entry-content')

async def save(self):
with open('scrapinghub.txt', 'a+') as f:
f.writelines(self.results['title'] + '\n')
async with aiofiles.open('scrapinghub.txt', 'a+') as f:
await f.write(self.results)


class MySpider(Spider):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@

setup(
name="gain",
version="0.1.3",
version="0.1.4",
description="Web crawling framework for everyone.",
author="Gaojiuli",
author_email="gaojiuli@gmail.com",
Expand Down

0 comments on commit 74043a8

Please sign in to comment.