浏览代码

ycsd fix spider

zz 3 年之前
父节点
当前提交
ebff37a46c
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 0 0
      ydyspider/log/log.log
  2. 1 1
      ydyspider/spiders/zwcontentlianshangSpider.py

+ 0 - 0
ydyspider/log/log.log


+ 1 - 1
ydyspider/spiders/zwcontentlianshangSpider.py

@@ -13,7 +13,7 @@ class zwcontentlianshangSpider(zwcontentSpider.zwcontentSpider):
     base_url = 'http://cp.yqsd.cn/api/book'
     custom_settings = {
         'DOWNLOAD_DELAY': 0.01,
-        'LOG_FILE': 'log/' + name + time.strftime("%Y-%m-%d", time.localtime()) + '.log'
+        'LOG_FILE': 'ydyspider/log/' + name + time.strftime("%Y-%m-%d", time.localtime()) + '.log'
     }
 
     def start_requests(self):