Registry / utility / go-shiori-go-readability

go-shiori-go-readability

JSON →
library0.0.0-20231029095239-6b97d5aba789gogounverified

This package extracts the main readable content from an HTML page.

go get github.com/go-shiori/go-readability
INSTALL
IMPORT
SIG · GO-SHIORI-GO-READA
G
go-shiori-go-readability
utilitygov0.0.0-20231029095239-6b97d5aba789
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.

readability
github.com/go-shiori/go-readability

Extracts readable content from a web page.

package main import ( "fmt" "github.com/go-shiori/go-readability" "net/http" ) func main() { resp, err := http.Get("https://example.com/article") if err != nil { panic(err) } defer resp.Body.Close() article, err := readability.FromReader(resp.Body, resp.Request.URL) if err != nil { panic(err) } fmt.Printf("Title: %s\nContent: %s\n", article.Title, article.Content) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20231029095239-6b97d5aba789latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
go-shiori-go-readability — go get go-shiori-go-readability · libregistry