An open API service indexing awesome lists of open source software.

https://github.com/rajputpriyankaa/scrapy

Web scraping with Scrapy
https://github.com/rajputpriyankaa/scrapy

css-selectors scraping scrapy xpath

Last synced: 12 months ago
JSON representation

Web scraping with Scrapy

Awesome Lists containing this project

README

          

# scrapy
Web scraping with Scrapy

# For starting the project, use command:
scrapy startproject
Ex: scrapy startproject scrapingcourse

# Go to the created directory
cd scrapingcourse

# Generate a spider file
scrapy genspider scraper
Ex: scrapy genspider scraper https://www.scrapingcourse.com/ecommerce/
It will create the scraper.py under spiders folder

# To run the scraper:
scrapy crawl scraper

# To output the data in json file:
scrapy crawl scraper -o json

# To output the data in csv file:
scrapy crawl scraper -o scraper.csv