switch SgmlLinkExtractor to .getall

This commit is contained in:
Mikhail Korobov 2018-08-22 04:20:55 +05:00
parent 460f0f0451
commit 12e42bbe06
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ class SgmlLinkExtractor(FilteringLinkExtractor):
base_url = get_base_url(response)
body = u''.join(f
for x in self.restrict_xpaths
for f in response.xpath(x).extract()
for f in response.xpath(x).getall()
).encode(response.encoding, errors='xmlcharrefreplace')
else:
body = response.body