Versions in this module Expand all Collapse all v0 v0.5.0 May 13, 2024 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 + Language string + Length int + ModifiedTime *time.Time + Node *html.Node + PublishedTime *time.Time + SiteName string + Social map[string]SocialInfo + 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 + AllowedVideoRegex *regexp.Regexp + 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) + type SocialInfo struct + Username string