settings.py 617 B

1234567891011121314151617181920212223
  1. # -*- coding: utf-8 -*-
  2. # Scrapy settings for fun project
  3. #
  4. # For simplicity, this file contains only the most important settings by
  5. # default. All the other settings are documented here:
  6. #
  7. # http://doc.scrapy.org/en/latest/topics/settings.html
  8. #
  9. BOT_NAME = 'fun'
  10. SPIDER_MODULES = ['fun.spiders']
  11. NEWSPIDER_MODULE = 'fun.spiders'
  12. ITEM_PIPELINES = {'fun.pipelines.ImageDownloadPipeline': 1}
  13. IMAGES_STORE = '/tmp/images'
  14. DOWNLOAD_DELAY = 0.25 # 250 ms of delay
  15. USER_AGENT = "USER_AGENT = 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2049.0 Safari/537.36'"