xpath去换行符和空格

normalize-space/strip

item.xpath('normalize-space(./div[@class="tags"])')
item.xpath('./div[@class="tags"]').strip()
发布了22 篇原创文章 · 获赞 0 · 访问量 449

猜你喜欢

转载自blog.csdn.net/qq_43227756/article/details/104519006
今日推荐