python_xpath

# 如果需要使用contains选择包括一些内容的同时,且不包含另外一部分内容,这样写:
//a[contains(@href,"node")][not(contains(@href,"/m/"))]

 

posted @ 2019-01-04 15:32  贺健龙  阅读(113)  评论(0编辑  收藏  举报