摘要: 使用xpath易错点 1、//的误用 通过xpath得到的elem对象,不能在开头使用//进行定位。在开头使用//是对原elem进行xpath 举个例子: from lxml import etree html = """<html> <body> <li><i>1<i></li> <li><i>2 阅读全文
posted @ 2020-11-17 16:06 流水自净 阅读(133) 评论(0) 推荐(0) 编辑