Documentation
¶
Index ¶
Constants ¶
View Source
const ( HTML_M_CONTENT = "//div[@id='content']" HTML_M_BLURB = "//div[@class='text shrinkable']/p" HTML_M_BLURB_ALT = "/div[@class='text']" HTML_M_TITLE = "//h1//span[@class='item']/text()" HTML_M_AUTHORS = "//div[@class='authors']//a[not(following-sibling::span[@class='data'])]" HTML_M_SERIES = "//h1//span[@class='item']//a" )
Variables ¶
View Source
var ErrScraperNotFound = errors.New("scraper not found")
View Source
var Registry = make(map[string]Scraper)
Functions ¶
func RegisterScraper ¶
func RegisterScraper(p Scraper)
Types ¶
type Metadata ¶
type Metadata struct {
Blurb string
Authors []Link
Series []SeriesLink
Title string
Tags []string
}
Click to show internal directories.
Click to hide internal directories.