Python 3.x lxml不支持xpath上的多属性筛选器
我想使用xpath选择具有多个属性的节点 我的问题有解决办法吗Python 3.x lxml不支持xpath上的多属性筛选器,python-3.x,xpath,lxml,Python 3.x,Xpath,Lxml,我想使用xpath选择具有多个属性的节点 我的问题有解决办法吗 node.xpath('.//td[@colspan=6@class=“mbw”]') xpath表达式缺少用于组合每个属性条件的逻辑运算符(和或或),例如: node.xpath('.//td[@colspan=6 and @class="mbw"]') 非常感谢你,我可以用谷歌的xpath-lxml多属性找到有用的答案,你帮我省了很多钱~~thx node.xpath('.//td[@colspan=6 and @class=
node.xpath('.//td[@colspan=6@class=“mbw”]')
xpath表达式缺少用于组合每个属性条件的逻辑运算符(
和
或或
),例如:
node.xpath('.//td[@colspan=6 and @class="mbw"]')
非常感谢你,我可以用谷歌的
xpath-lxml多属性找到有用的答案,你帮我省了很多钱~~thx
node.xpath('.//td[@colspan=6 and @class="mbw"]')