假设文本是用requests获取的,或者通过json转过来的。
html = scrapy.Selector(text=data, type='html')
data就是字符串文本。
假设文本是用requests获取的,或者通过json转过来的。
html = scrapy.Selector(text=data, type='html')
data就是字符串文本。
本文标题:html字符/文本转scrapy-selector
本文链接:https://www.haomeiwen.com/subject/dzuashtx.html
网友评论