quotesbot

This is a sample Scrapy project for educational purposes

  • Owner: scrapy/quotesbot
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

QuotesBot

This is a Scrapy project to scrape quotes from famous people from http://quotes.toscrape.com (github repo).

This project is only meant for educational purposes.

Extracted data

This project extracts quotes, combined with the respective author names and tags.
The extracted data looks like this sample:

{
    'author': 'Douglas Adams',
    'text': '“I may not have gone where I intended to go, but I think I ...”',
    'tags': ['life', 'navigation']
}

Spiders

This project contains two spiders and you can list them using the list
command:

$ scrapy list
toscrape-css
toscrape-xpath

Both spiders extract the same data from the same website, but toscrape-css
employs CSS selectors, while toscrape-xpath employs XPath expressions.

You can learn more about the spiders by going through the
Scrapy Tutorial.

Running the spiders

You can run a spider using the scrapy crawl command, such as:

$ scrapy crawl toscrape-css

If you want to save the scraped data to a file, you can pass the -o option:

$ scrapy crawl toscrape-css -o quotes.json

Main metrics

Overview
Name With Ownerscrapy/quotesbot
Primary LanguagePython
Program languagePython (Language Count: 1)
Platform
License:MIT License
所有者活动
Created At2016-09-27 13:55:40
Pushed At2023-11-29 22:31:31
Last Commit At2016-10-18 09:16:30
Release Count0
用户参与
Stargazers Count1.3k
Watchers Count70
Fork Count778
Commits Count5
Has Issues Enabled
Issues Count3
Issue Open Count0
Pull Requests Count0
Pull Requests Open Count6
Pull Requests Close Count3
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private