Scrapy notes
Ставим miniconda3
Ставим scrapy:
conda install -c conda-forge scrapyCreate project:
scrapy startproject tutorialCrawl and save to json:
scrapy crawl quotes -o quotes.jsonCrawl spider:
scrapy crawl quotesAdd delay between requests:
DOWNLOAD_DELAY = 3
scrapy crawl ptichka_stores -o quotes.json --set DOWNLOAD_DELAY=3
Or else we can specify Globaly in the settings.py DOWNLOAD_DELAY = 3
by default scrapy takes 0.25 seconds delay between 2 requests.
Last updated
Was this helpful?