Merge pull request #2346 from redapple/master-pr2313

Fix tutorial AuthorSpider
This commit is contained in:
Mikhail Korobov 2016-10-21 11:08:17 +02:00 committed by GitHub
commit 1be2447af9
1 changed files with 1 additions and 1 deletions

View File

@ -564,7 +564,7 @@ this time for scraping author information::
def parse(self, response):
# follow links to author pages
for href in response.css('.author a::attr(href)').extract():
for href in response.css('.author+a::attr(href)').extract():
yield scrapy.Request(response.urljoin(href),
callback=self.parse_author)