Skip to content

jiansoung/quotesbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quotesbot

Let's Play with Scrapy !

Requirement

  • MySQL
  • Python 3.x

Create database

mysql < mysql_schema.sql

Run all spiders

./run_spider.sh

you can also run some spiders with following command:

./run_spider.sh [spider1] [spider2] ...

Scrapy in quotesbot

Spiders

  • goodreads_quotes: spider for crawling quotes from goodreads.com.
  • brainyquote: spider for crawling quotes from brainyquote.com.

TODO

  • Fix brainyquote spider 403 error.
  • Add likes to goodreads_quotes spider and database schema.

ps:

# '169019 likes'
likes = quote.css('div.quoteFooter div.right a::text').extract_first()

Releases

No releases published

Packages

No packages published