Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncSiteScraper ¶
type AsyncSiteScraper struct { BaseScraper // contains filtered or unexported fields }
AsyncSiteScraper scrapes an entire site asynchronously.
func NewAsyncSiteScraper ¶
func NewAsyncSiteScraper(siteURL string) (*AsyncSiteScraper, error)
NewAsyncSiteScraper initializes a new AsyncSiteScraper.
func (*AsyncSiteScraper) Scrape ¶
func (s *AsyncSiteScraper) Scrape() error
Scrape the site for links.
type BaseScraper ¶
type BaseScraper struct {
// contains filtered or unexported fields
}
BaseScraper is the base scraper for HTML sites/pages.
func (*BaseScraper) UniqueLinks ¶
func (s *BaseScraper) UniqueLinks() []string
UniqueLinks returns all the unique internal links that where found.
type PageScraper ¶
type PageScraper struct { BaseScraper // contains filtered or unexported fields }
PageScraper scrapes a website and finds all pages.
func NewPageScraper ¶
func NewPageScraper(siteURL string, pageURL string) *PageScraper
NewPageScraper initializes a PageScraper.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser parses a HTML page and stores the found links.
type SyncSiteScraper ¶
type SyncSiteScraper struct { BaseScraper // contains filtered or unexported fields }
SyncSiteScraper scrapes an entire site synchronously.
func NewSyncSiteScraper ¶
func NewSyncSiteScraper(siteURL string) (*SyncSiteScraper, error)
NewSyncSiteScraper initializes a new SyncSiteScraper.
func (*SyncSiteScraper) Scrape ¶
func (s *SyncSiteScraper) Scrape() error
Scrape the site for links.
Click to show internal directories.
Click to hide internal directories.