iereader

package
v0.0.0-...-977eb4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser recognizes and parses the IE Reading View markup tags according to http://ie.microsoft.com/testdrive/browser/readingview, and returns the properties that matter to distilled content - title, date, author, publisher, dominant image, inline images, caption, copyright, and opt-out. Some properties require the scanning and parsing of a lot of nodes, so each property is scanned for and verified for legitimacy lazily, i.e. only upon request. It implements markup.Accessor.

func NewParser

func NewParser(root *html.Node) *Parser

func (*Parser) Article

func (p *Parser) Article() *data.MarkupArticle

func (*Parser) Author

func (p *Parser) Author() string

func (*Parser) Copyright

func (p *Parser) Copyright() string

func (*Parser) Description

func (p *Parser) Description() string

func (*Parser) Images

func (p *Parser) Images() []data.MarkupImage

func (*Parser) OptOut

func (p *Parser) OptOut() bool

func (*Parser) Publisher

func (p *Parser) Publisher() string

func (*Parser) Title

func (p *Parser) Title() string

func (*Parser) Type

func (p *Parser) Type() string

func (*Parser) URL

func (p *Parser) URL() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL