Documentation
¶
Index ¶
- Constants
- type Config
- type Job
- type ScrapeResult
- type Scraper
- func (s *Scraper) AddSource(url string, sourceType string) error
- func (s *Scraper) DetectSourceType(rawURL string) string
- func (s *Scraper) LoadConfig() error
- func (s *Scraper) ReloadConfig() error
- func (s *Scraper) RemoveSource(urlToRemove string) error
- func (s *Scraper) Run() error
- func (s *Scraper) SaveConfig() error
- func (s *Scraper) ShowConfig() error
- type SourceConfig
Constants ¶
View Source
const ( Reset = "\033[0m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" Gray = "\033[37m" White = "\033[97m" Bold = "\033[1m" BrightRed = "\033[91m" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScrapeResult ¶
type Scraper ¶
type Scraper struct {
Config *Config
OutputDir string
Workers int
SkipTelegram bool
// contains filtered or unexported fields
}
func (*Scraper) DetectSourceType ¶
func (*Scraper) LoadConfig ¶
func (*Scraper) ReloadConfig ¶
func (*Scraper) RemoveSource ¶
func (*Scraper) SaveConfig ¶
func (*Scraper) ShowConfig ¶
type SourceConfig ¶
Click to show internal directories.
Click to hide internal directories.