Skip to content

Commit

Permalink
🎉 v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
howie6879 committed Jan 25, 2019
1 parent d9b5caa commit 0a6bd90
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Binary file modified docs/images/ruia_demo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions examples/topics_examples/ruia_demo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from ruia import TextField, Item, Spider


class HackerNewsItem(Item):
target_item = TextField(css_select='tr.athing')
title = TextField(css_select='a.storylink')
Expand All @@ -13,10 +12,5 @@ async def parse(self, response):
async for item in HackerNewsItem.get_items(html=response.html):
yield item

async def save_item(self, item: HackerNewsItem):
# process item result data
pass


if __name__ == '__main__':
HackerNewsSpider.start()

0 comments on commit 0a6bd90

Please sign in to comment.