This commit is contained in:
cwx committed 2024-07-15 04:14:02 +08:00
1 parent faee8328a4
commit ab8bb0412e
3 files changed
+14 -10

No files matched your search

+2 -2
View File
@@ -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)