只需要将
for href in response.xpath('XX').extract(): yield Request(hrefs)
修改为下面,就可以显示出来
for href in response.xpath('XX').extract(): hrefs = response.urljoin(href) yield Request(hrefs)
感谢这个
找了很久。