Documentation ¶
Index ¶
- type Links
- type Page
- type Scraper
- func (s *Scraper) GetInsideAttachments(url string) (attachments []string)
- func (s *Scraper) GetPath(link string) string
- func (s *Scraper) IsLinkScanned(link string, scanned []string) (exists bool)
- func (s *Scraper) IsURLInSlice(search string, array []string) bool
- func (s *Scraper) IsValidExtension(link string) bool
- func (s *Scraper) SaveAttachment(url string) (err error)
- func (s *Scraper) SaveHTML(url string, html string) (err error)
- func (s *Scraper) TakeLinks(toScan string, started chan int, finished chan int, scanning chan int, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scraper ¶
type Scraper struct { // Original domain OldDomain string // New domain to rewrite the download HTML sites NewDomain string // Root domain Root string // Path where to save the downloads Path string // Use args on URLs UseQueries bool }
func (*Scraper) GetInsideAttachments ¶
GetInsideAttachments gets inside CSS Files
func (*Scraper) IsLinkScanned ¶
IsLinkScanned checks if a link has already been scanned
func (*Scraper) IsURLInSlice ¶
IsURLInSlice checks if a URL is in a slice
func (*Scraper) IsValidExtension ¶
IsValidExtension check if an extension is valid
func (*Scraper) SaveAttachment ¶
Download a single link
Click to show internal directories.
Click to hide internal directories.