摘要: xpath解析实战 tree= etree.parse("./test.html") # 普通定位 res = tree.xpath("/html/head/title")[0] # 获取所有标签 res = tree.xpath("//div") # 索引定位-> res = tree.xpath 阅读全文
posted @ 2023-11-05 00:16 dd随风 阅读(133) 评论(0) 推荐(0) 编辑