爬虫的时候搭配xpath插件验证很好用,但就是前面路径太长可能识别不了,但保留后面的部分就行,下面是原来识别出来的xpath路径,我在xpath插件中输入的部分删掉了前面挺长一部分
.//*[contains(concat(" ",normalize-space(@class)," ")," xh-highlight ")]备选分隔标记//*[contains(concat( " ", @class, " " ), concat( " ", "xh-highlight", " " ))]备选分隔标记//*[@id="content"]/div[1]/div[1]/div[15]/table[1]/tbody[1]/tr[2]/td[2]