持续更新scrapy的错误,ValueError: Missing scheme in request url:

只需要将

            for href in response.xpath('XX').extract():
                yield Request(hrefs)

修改为下面,就可以显示出来

            for href in response.xpath('XX').extract():
                hrefs = response.urljoin(href)
                yield Request(hrefs)

感谢这个

找了很久。

原文地址:https://www.cnblogs.com/wzwi/p/10729254.html