我試圖提取一個排除xpath,但無法工作。排除一個複雜的xpath
(//div[@class='row site country-names']/following-sibling::div)[1]/div
上述xpath提取所有三個div,但我需要排除具有點分隔符的div。
我嘗試了例外,但不是它不工作。
(//div[@class='row site country-names']/following-sibling::div)[1]/div and not [@class='dot-seperator']
添加樣本數據爲文本,而不是一個屏幕截圖。 –
甚至更好:提供一個網址。 – Severin
不,網址並不好,因爲這個問題很可能在網址死後很長時間。 –