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