html字符/文本转scrapy-selector 2020-03-15 本文已影响0人 黑色汪汪汪 假设文本是用requests获取的,或者通过json转过来的。 html = scrapy.Selector(text=data, type='html') data就是字符串文本。