Registry / utility / antchfx-htmlquery

antchfx-htmlquery

JSON →
library1.3.6gogounverified

Package htmlquery provides extract data from HTML documents using XPath expression.

go get github.com/antchfx/htmlquery
INSTALL
IMPORT
SIG · ANTCHFX-HTMLQUERY
A
antchfx-htmlquery
utilitygov1.3.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

htmlquery
github.com/antchfx/htmlquery

Extract text from an HTML document using XPath

package main import ( "fmt" "strings" "github.com/antchfx/htmlquery" ) func main() { doc, _ := htmlquery.Parse(strings.NewReader("<html><body><h1>Hello</h1></body></html>")) node, _ := htmlquery.Query(doc, "//h1") fmt.Println(htmlquery.InnerText(node)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.3.6latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
2
Amazon
1
Resources
antchfx-htmlquery — go get antchfx-htmlquery · libregistry