Registry / utility / jalfresi-justext

jalfresi-justext

JSON →
library0.0.0-20221106200834-be571e3e3052gogounverified

A Go port of the jusText algorithm for extracting main content from HTML pages.

go get github.com/JalfResi/justext
INSTALL
IMPORT
SIG · JALFRESI-JUSTEXT
J
jalfresi-justext
utilitygov0.0.0-20221106200834-be571e3e3052
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.

justext
github.com/JalfResi/justext

Extracts main content paragraphs from an HTML string.

package main import ( "fmt" "github.com/JalfResi/justext" "strings" ) func main() { html := "<html><body><p>Main content</p></body></html>" paragraphs, _ := justext.JusText(strings.NewReader(html), nil) for _, p := range paragraphs { fmt.Println(p.Text) } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20221106200834-be571e3e3052latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
jalfresi-justext — go get jalfresi-justext · libregistry