فهرست منبع

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):