quotesbot

This is a sample Scrapy project for educational purposes

  • 所有者: scrapy/quotesbot
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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

主要指标

概览
名称与所有者scrapy/quotesbot
主编程语言Python
编程语言Python (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2016-09-27 13:55:40
推送于2023-11-29 22:31:31
最后一次提交2016-10-18 09:16:30
发布数0
用户参与
星数1.3k
关注者数70
派生数778
提交数5
已启用问题?
问题数3
打开的问题数0
拉请求数0
打开的拉请求数6
关闭的拉请求数3
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?