Documentation ¶
Overview ¶
Package meta provides extract processors to retrieve several meta information from a page (meta tags, favicon, pictures...).
Index ¶
- func ExtractFavicon(m *extract.ProcessMessage, next extract.Processor) extract.Processor
- func ExtractMeta(m *extract.ProcessMessage, next extract.Processor) extract.Processor
- func ExtractOembed(m *extract.ProcessMessage, next extract.Processor) extract.Processor
- func ExtractPicture(m *extract.ProcessMessage, next extract.Processor) extract.Processor
- func ParseMeta(doc *html.Node) extract.DropMeta
- func ParseProps(doc *html.Node) extract.DropProperties
- func SetDropProperties(m *extract.ProcessMessage, next extract.Processor) extract.Processor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractFavicon ¶
ExtractFavicon is a processor that extracts the favicon for the first extracted document.
func ExtractMeta ¶
ExtractMeta is a processor that extracts metadata from the document and set the Drop values accordingly.
func ExtractOembed ¶
ExtractOembed is a processor that extracts the picture from the document metadata. It has to come after ExtractMeta.
func ExtractPicture ¶
ExtractPicture is a processor that extracts the picture from the document metadata. It has to come after ExtractMeta.
func ParseProps ¶
func ParseProps(doc *html.Node) extract.DropProperties
ParseProps parses raw properties from the page. The results for link and meta are a bit redundant with what we fetch with ParseMeta but they contain more information and can be useful to content scripts.
func SetDropProperties ¶
SetDropProperties will set some Drop properties bases on the retrieved metadata. It must be run after ExtractMeta and ExtractOembed.
Types ¶
This section is empty.