Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { GeneralConfig GeneralConfig `json:"config" mapstructure:"config"` CollyConfig colly.Collector `json:"colly" mapstructure:"colly"` ScrapeConfig ScrapeConfig `json:"scraper" mapstructure:"scraper"` }
Config represents the JSON file specification of the scraper. It includes general settings, colly specific settings, and the raw scraper spec
type GeneralConfig ¶
type GeneralConfig struct { Sites []string // This logger enables logging Logger *log.Logger `json:"-"` }
GeneralConfig contains the general configuration for jsonscrape
type Results ¶
Results is a map of values that are the results of the scraper Uses a pointer to allow nil base types
type ScrapeConfig ¶
type ScrapeConfig map[string]datum
ScrapeConfig represents the values that the scraper will retrieve from the various sites
type Scraper ¶
Scraper represents a web scraper
func NewScraper ¶
NewScraper returns a new JSONscraper
Click to show internal directories.
Click to hide internal directories.