Versions in this module Expand all Collapse all v0 v0.6.0 Sep 17, 2026 Changes in this version + var ErrTimestampMissing = errors.New("timestamp not found in document") + func CheckDocument(doc *html.Node) bool + type Article struct + Node *html.Node + func FromDocument(doc *html.Node, pageURL *nurl.URL) (Article, error) + func FromReader(input io.Reader, pageURL *nurl.URL) (Article, error) + func (a Article) Byline() string + func (a Article) Excerpt() string + func (a Article) Favicon() string + func (a Article) ImageURL() string + func (a Article) Language() string + func (a Article) ModifiedTime() (time.Time, error) + func (a Article) PublishedTime() (time.Time, error) + func (a Article) RenderHTML(w io.Writer) error + func (a Article) RenderText(w io.Writer) error + func (a Article) SiteName() string + func (a Article) Title() string + type Parser struct + AllowedVideoRegex *regexp.Regexp + CharThresholds int + ClassesToPreserve []string + DisableJSONLD bool + KeepClasses bool + MaxElemsToParse int + NTopCandidates int + TagsToScore []string + func NewParser() Parser + func (ps *Parser) CheckDocument(doc *html.Node) bool + func (ps *Parser) Parse(input io.Reader, pageURL *nurl.URL) (Article, error) + func (ps *Parser) ParseAndMutate(doc *html.Node, pageURL *nurl.URL) (Article, error) + func (ps *Parser) ParseDocument(doc *html.Node, pageURL *nurl.URL) (Article, error)