Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Created May 31, 2021 15:06
Show Gist options
  • Save Abhayparashar31/5be9198edc3feb949026081472889c36 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/5be9198edc3feb949026081472889c36 to your computer and use it in GitHub Desktop.
import scrapy
class QuotesSpider(scrapy.Spider):
name = "quotes"
start_urls = [ # List of websites to scrape
'http://quotes.toscrape.com/'
]
def parse(self, response): ## source code
title = response.css('title::text').extract()
yield {'title':title}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment