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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?