在使用scrapy框架爬取sina时,常见保存

 当出现ERROR: Spider error processing

AttributeError: 'lxml.etree._ElementUnicodeResult' object has no attribute  'extract'

意思是当我们使用lxml解析网页时,根本没有extract(序列化该节点为Unicode字符串并返回list)属性

猜你喜欢

转载自www.cnblogs.com/zhuyafeng/p/9302060.html