Registry /
utility / go-shiori-go-readability
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.