Browse Source

yuyuedu->xingkeyuedu

zhaoyang 2 years ago
parent
commit
6250341989

content_spider/spiders/yuyuedu/__init__.py → content_spider/spiders/xingheyuedu/__init__.py


+ 9 - 9
content_spider/spiders/yuyuedu/yuyuedu.py

@@ -8,12 +8,12 @@ import time
 import json
 import json
 
 
 
 
-name = 'yuyuedu'
+name = 'xingheyuedu'
 allowed_domains = ['api.yuread.cn']
 allowed_domains = ['api.yuread.cn']
-source = 'zy_yuyuedu'
+source = 'zy_xingheyuedu'
 source_name = 'yuyuedu娱阅读星河'
 source_name = 'yuyuedu娱阅读星河'
-source_id = 36
-base_url = 'http://api.xingheread.cn/zhiyu/{}'
+source_id = 41
+base_url = 'http://api.yuread.cn/zhiyu/{}'
 
 
 
 
 category =  [
 category =  [
@@ -86,7 +86,7 @@ def get_category(sort_id):
     return category[0]
     return category[0]
 
 
 
 
-class yuyueduProcess():
+class xingheyueduProcess():
     name = name
     name = name
     allowed_domains = allowed_domains
     allowed_domains = allowed_domains
     source = source
     source = source
@@ -153,7 +153,7 @@ class yuyueduProcess():
         }
         }
 
 
     
     
-class yuyueduSpider(yuyueduProcess,baseSpider):
+class xingheyueduSpider(xingheyueduProcess,baseSpider):
     name = name
     name = name
     custom_settings = {
     custom_settings = {
         'DOWNLOAD_DELAY': 0.1,
         'DOWNLOAD_DELAY': 0.1,
@@ -162,7 +162,7 @@ class yuyueduSpider(yuyueduProcess,baseSpider):
     }
     }
 
 
 
 
-class yuyueduUpdateSpider(yuyueduProcess,baseUpdateSpider):
+class xingheyueduUpdateSpider(xingheyueduProcess,baseUpdateSpider):
     name = name + "update"
     name = name + "update"
     custom_settings = {
     custom_settings = {
         'DOWNLOAD_DELAY': 0.1,
         'DOWNLOAD_DELAY': 0.1,
@@ -172,7 +172,7 @@ class yuyueduUpdateSpider(yuyueduProcess,baseUpdateSpider):
 
 
 
 
     
     
-class yuyueduFixSpider(yuyueduProcess,fixChapterSpider):
+class xingheyueduFixSpider(xingheyueduProcess,fixChapterSpider):
     name = name + 'fix'
     name = name + 'fix'
     custom_settings = {
     custom_settings = {
         'DOWNLOAD_DELAY': 0.1,
         'DOWNLOAD_DELAY': 0.1,
@@ -181,7 +181,7 @@ class yuyueduFixSpider(yuyueduProcess,fixChapterSpider):
     }
     }
 
 
 
 
-class yuyueduBookInfoSpider(yuyueduProcess,baseUpdateBookStatusSpider):
+class xingheyueduBookInfoSpider(xingheyueduProcess,baseUpdateBookStatusSpider):
     name = name + "bookinfo"
     name = name + "bookinfo"
     custom_settings = {
     custom_settings = {
         'DOWNLOAD_DELAY': 0.1,
         'DOWNLOAD_DELAY': 0.1,

content_spider/spiders/yuyuedu/公用接口 (1).html → content_spider/spiders/xingheyuedu/公用接口 (1).html