Closed imthaghost closed 4 years ago
XPath := "//*[@id=\"market-summary\"]/div[2]/div/div[1]/div[1]" doc, err := htmlquery.LoadURL("https://stockx.com/air-jordan-1-retro-high-off-white-university-blue") if err != nil { panic(err) } s2 := htmlquery.FindOne(doc, XPath) p := string(htmlquery.InnerText(s2)) return p
I tested and can works on the latest version of htmlquery. Update the htmlquery dependency package xpath to the latest version 1.1.6
htmlquery
1.1.6
How to replicate