Versions in this module Expand all Collapse all v0 v0.0.1 Nov 22, 2021 Changes in this version + func Check(input io.Reader) bool + func CheckDocument(doc *html.Node) bool + type Article struct + Byline string + Content string + Excerpt string + Favicon string + Image string + Length int + Node *html.Node + SiteName string + TextContent string + Title string + func FromDocument(doc *html.Node, pageURL *nurl.URL) (Article, error) + func FromReader(input io.Reader, pageURL *nurl.URL) (Article, error) + func FromURL(pageURL string, timeout time.Duration) (Article, error) + type Parser struct + CharThresholds int + ClassesToPreserve []string + Debug bool + DisableJSONLD bool + KeepClasses bool + MaxElemsToParse int + NTopCandidates int + TagsToScore []string + func NewParser() Parser + func (ps *Parser) Check(input io.Reader) bool + func (ps *Parser) CheckDocument(doc *html.Node) bool + func (ps *Parser) Parse(input io.Reader, pageURL *nurl.URL) (Article, error) + func (ps *Parser) ParseDocument(doc *html.Node, pageURL *nurl.URL) (Article, error)