zhaoyang hai 1 ano
pai
achega
de9a2906eb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      ydyspider/spiders/zycontentSpider.py

+ 2 - 2
ydyspider/spiders/zycontentSpider.py

@@ -7,9 +7,9 @@ import time
 
 class zycontentSpider(scrapy.Spider):
     name = 'zycontent'
-    allowed_domains = ['60.204.150.173']
+    allowed_domains = ['content.yueduzy.com']
     query = '?channel_name=zhuishuyun&channel_key=123456'
-    base_url = 'http://60.204.150.173:8094/api/output'
+    base_url = 'https://content.yueduzy.com/api/output'
     custom_settings = {
         'DOWNLOAD_DELAY': 0.01,
         'LOG_FILE': 'ydyspider/log/' + name + time.strftime("%Y-%m-%d", time.localtime()) + '.log'