Skip to content

Aniruddhsinh03/scrapyExampleQuotes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

scrapyExampleQuotes

This is a Scrapy project to scrape quotes and author information from http://quotes.toscrape.com.

This project is only meant for educational purposes.

Selection

Main Site

Image of Quotes

Quotes Selection

Image of Quotes Selection

Comment Selection

Image of Comment Selection

Author Selection

Image of Author Selection

Tags Selection

Image of Tags Selection

Author Details Selection

Image of Author Details Selection

Extracted data

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

{
    'Author': 'Douglas Adams',
    'Comment': '“I may not have gone where I intended to go, but I think I ...”',
    'Tags': ['life', 'navigation'],
    'Author Born Location': 'in Atlanta, Georgia, The United States', 
    'Author Description': "Martin Luther King, Jr. was one of the pivotal leaders of the American civil rights movement. King was a'
}

Spiders

This project contains one spider and you can list them using the list command:

$ scrapy list
quotesSpider

Spider extract the data from quotes page and visit author hyperlink and extract auther infomation also.

Running the spiders

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

$ scrapy crawl quotesSpider

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

$ scrapy crawl quotesSpider -o output.json

Releases

No releases published

Packages

No packages published

Languages