Registry / utility / puerkitobio-goquery

puerkitobio-goquery

JSON →
library1.12.0gogounverified

Package goquery implements features similar to jQuery, including the chainable syntax, to manipulate and query an HTML document.

go get github.com/PuerkitoBio/goquery
INSTALL
IMPORT
SIG · PUERKITOBIO-GOQUER
P
puerkitobio-goquery
utilitygov1.12.0
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.

goquery
github.com/PuerkitoBio/goquery

Parse HTML and extract text from <p> elements

package main import ( "fmt" "strings" "github.com/PuerkitoBio/goquery" ) func main() { html := `<html><body><p>Hello</p></body></html>` doc, _ := goquery.NewDocumentFromReader(strings.NewReader(html)) doc.Find("p").Each(func(i int, s *goquery.Selection) { fmt.Println(s.Text()) }) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
puerkitobio-goquery — go get puerkitobio-goquery · libregistry