old_contents: # -*- coding: utf-8 -*-
  
  # Scrapy settings for illustrious project
  #
  # For simplicity, this file contains only the most important settings by
  # default. All the other settings are documented here:
  #
  #     http://doc.scrapy.org/en/latest/topics/settings.html
  #
  
  import sys
  sys.path.append('../../') # 把项目根目录导入
  import config
  
  BOT_NAME = 'illustrious'
  
  SPIDER_MODULES = ['illustrious.spiders']
  NEWSPIDER_MODULE = 'illustrious.spiders'
  
  MONGO_URI = config.MONGO_URI 
  MONGO_DATABASE = config.MONGO_DATABASE 
  
  # Crawl responsibly by identifying yourself (and your website) on the user-agent
  #USER_AGENT = 'illustrious (+http://www.yourdomain.com)'
  
  ITEM_PIPELINES = {
      'illustrious.pipelines.MongoPipeline': 300,
  }
  
new_contents: # -*- coding: utf-8 -*-
  
  # Scrapy settings for illustrious project
  #
  # For simplicity, this file contains only the most important settings by
  # default. All the other settings are documented here:
  #
  #     http://doc.scrapy.org/en/latest/topics/settings.html
  #
  
  import sys
  sys.path.append('../') # 把项目根目录导入
  import config
  
  BOT_NAME = 'illustrious'
  
  SPIDER_MODULES = ['illustrious.spiders']
  NEWSPIDER_MODULE = 'illustrious.spiders'
  
  MONGO_URI = config.MONGO_URI 
  MONGO_DATABASE = config.MONGO_DATABASE 
  
  # Crawl responsibly by identifying yourself (and your website) on the user-agent
  #USER_AGENT = 'illustrious (+http://www.yourdomain.com)'
  
  ITEM_PIPELINES = {
      'illustrious.pipelines.MongoPipeline': 300,
  }
  
subject: update spider setting