持续更新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)

感谢这个

找了很久。

posted on 2019-04-18 14:05  imimtks  阅读(1613)  评论(0编辑  收藏  举报