IMPORTXML 公式的 2 个文本之间的 Xpath
Xpath between 2 texts for IMPORTXML formula
我已经制定出 xpath,它非常接近我的需要,但需要一些小的改进。
https://www.punters.com.au/form-guide/
我想要今天赛车网站的所有 URL,并且只在澳大利亚
这些是我现在拥有的 xpath。
这个页面提供了所有的比赛。包括今天参加比赛的所有国家。 - //*[@class='component-wrapper form-guide-index']/table1/tbody/tr//td/a/@href
这个提供了澳大利亚的所有种族。但包括今天、明天或网页上任何其他日期的比赛 - //tr[@class="upcoming-race__row"][preceding::tr[@class='upcoming-race__row upcoming-race__row--country'] 1[*/.="Australia"]]/td[position()>=2]/a/@href
好的。所以这是相关主题:
要获取今天澳大利亚所有种族的链接(在 GoogleSheets 中将 " 替换为 '):
//tr[@class="upcoming-race__row"][preceding::td[@class="upcoming-race__country-title"][1][.="Australia"]][preceding::h2[1][.="Today"]]/td[position()>=2]/a/@href
替代 XPaths :
//h2[.="Today"]/following::table[1]//tr[@class="upcoming-race__row"][preceding::td[@class='upcoming-race__country-title'][1][.="Australia"]]/td[position()>=2]/a/@href
//div[@class="component-wrapper form-guide-index"]/table[1]//tr[@class="upcoming-race__row"][preceding::td[@class='upcoming-race__country-title'][1][.="Australia"]]/td[position()>=2]/a/@href
我已经制定出 xpath,它非常接近我的需要,但需要一些小的改进。
https://www.punters.com.au/form-guide/
我想要今天赛车网站的所有 URL,并且只在澳大利亚
这些是我现在拥有的 xpath。
这个页面提供了所有的比赛。包括今天参加比赛的所有国家。 - //*[@class='component-wrapper form-guide-index']/table1/tbody/tr//td/a/@href
这个提供了澳大利亚的所有种族。但包括今天、明天或网页上任何其他日期的比赛 - //tr[@class="upcoming-race__row"][preceding::tr[@class='upcoming-race__row upcoming-race__row--country'] 1[*/.="Australia"]]/td[position()>=2]/a/@href
好的。所以这是相关主题:
要获取今天澳大利亚所有种族的链接(在 GoogleSheets 中将 " 替换为 '):
//tr[@class="upcoming-race__row"][preceding::td[@class="upcoming-race__country-title"][1][.="Australia"]][preceding::h2[1][.="Today"]]/td[position()>=2]/a/@href
替代 XPaths :
//h2[.="Today"]/following::table[1]//tr[@class="upcoming-race__row"][preceding::td[@class='upcoming-race__country-title'][1][.="Australia"]]/td[position()>=2]/a/@href
//div[@class="component-wrapper form-guide-index"]/table[1]//tr[@class="upcoming-race__row"][preceding::td[@class='upcoming-race__country-title'][1][.="Australia"]]/td[position()>=2]/a/@href