scrapy TypeError: Request url must be str or unicode, got Selector:

运行时报错:

TypeError: Request url must be str or unicode, got Selector:

scrapy TypeError: Request url must be str or unicode, got Selector:_第1张图片
解决办法:写xpath的时候,加上.extract()即可
scrapy TypeError: Request url must be str or unicode, got Selector:_第2张图片
重新运行,正常

scrapy TypeError: Request url must be str or unicode, got Selector:_第3张图片

你可能感兴趣的:(scrapy,python,字符串)