fix
This commit is contained in:
1 parent
faee8328a4
commit
ab8bb0412e
3 files changed
+14
-10
No files matched your search
@@ -6,12 +6,12 @@ from Comics.utils import Conf
|
||||
|
||||
class RmComicSpider(scrapy.Spider):
|
||||
name = 'rm_comic'
|
||||
allowed_domains = ['roum12.xyz']
|
||||
allowed_domains = ['roum18.xyz']
|
||||
main_url = 'https://'+allowed_domains[0]
|
||||
start_urls = main_url+'/books'
|
||||
|
||||
# 遍历网站页数数据
|
||||
def start_requests(self):
|
||||
def start_requests(self):
|
||||
for x in range(0,60):
|
||||
yield scrapy.Request(self.start_urls+"?&page="+str(x), callback=self.books_comic)
|
||||
|
||||
|
||||
Reference in new issue
Block a user