提交 c7d245b9 编写于 作者: R Randy Pen 提交者: Paul Tremberth

update

Thx for your advice.
上级 eacc5937
......@@ -564,7 +564,7 @@ this time for scraping author information::
def parse(self, response):
# follow links to author pages
for href in response.css('span a::attr(href)').extract():
for href in response.css('.author+a::attr(href)').extract():
yield scrapy.Request(response.urljoin(href),
callback=self.parse_author)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册