zhaoyang 1 gadu atpakaļ
vecāks
revīzija
de9a2906eb
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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'