Skip to content

Commit 8f51cef

Browse files
committed
火影忍者漫画下载
1 parent ee08cdd commit 8f51cef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cartoon/cartoon/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#USER_AGENT = 'cartoon (+http://www.yourdomain.com)'
2020

2121
# Obey robots.txt rules
22-
ROBOTSTXT_OBEY = True
22+
ROBOTSTXT_OBEY = False
2323

2424
ITEM_PIPELINES = {
2525
'cartoon.pipelines.ComicImgDownloadPipeline': 1,

cartoon/cartoon/spiders/comic_spider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def parse1(self, response):
3838
items.append(item)
3939

4040
#根据每个章节的链接,发送Request请求,并传递item参数
41-
for item in items[-13:-1]:
41+
for item in items:
4242
yield scrapy.Request(url = item['link_url'], meta = {'item':item}, callback = self.parse2)
4343

4444
#解析获得章节第一页的页码数和图片链接

0 commit comments

Comments
 (0)