Created
May 31, 2021 15:06
-
-
Save Abhayparashar31/5be9198edc3feb949026081472889c36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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