Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Scrape ¶
type Scrape struct { ScrapePredicates []ScrapePredicate ScrapeAction ScrapeAction }
func NewScraper ¶
func NewScraper() *Scrape
type ScrapeAction ¶
func AttrValue ¶
func AttrValue(name string) ScrapeAction
type ScrapePredicate ¶
func HasAttr ¶
func HasAttr(name string) ScrapePredicate
func HasAttrVal ¶
func HasAttrVal(name, value string) ScrapePredicate
func HasClass ¶
func HasClass(class string) ScrapePredicate
type ScrapeResult ¶
type ScrapeResult interface { Raw() string Matches() []interface{} }
type Scraper ¶
type Scraper interface {
Get(uri string) (shavings ScrapeResult, err error)
}
Click to show internal directories.
Click to hide internal directories.