Skip to content

Commit

Permalink
火影忍者漫画下载
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Cherish committed Jun 4, 2017
1 parent ee08cdd commit 8f51cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cartoon/cartoon/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#USER_AGENT = 'cartoon (+http://www.yourdomain.com)'

# Obey robots.txt rules
ROBOTSTXT_OBEY = True
ROBOTSTXT_OBEY = False

ITEM_PIPELINES = {
'cartoon.pipelines.ComicImgDownloadPipeline': 1,
Expand Down
2 changes: 1 addition & 1 deletion cartoon/cartoon/spiders/comic_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def parse1(self, response):
items.append(item)

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

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

0 comments on commit 8f51cef

Please sign in to comment.