Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAllLink ¶
func GetAllLink(tag string, doc *goquery.Document, c chan []ScrapeResult)
GetAllLink - Method
Types ¶
type Crawler ¶
type Crawler struct{}
Crawler struct (MODEL)
func (Crawler) Crawl ¶
func (c Crawler) Crawl(startURL string) ([]ScrapeResult, string)
Crawl - METHOD
func (Crawler) Download ¶
func (c Crawler) Download(data []ScrapeResult, domain string)
Download - Method | download the data to file system directory
type ScrapeResult ¶
type ScrapeResult struct {
Link string `json:"link"`
}
ScrapeResult struct (MODEL)
func CrawlPage ¶
func CrawlPage(startURL string) []ScrapeResult
CrawlPage - Method | scrape all urls, paths, endpoints on the page
func ExtractLink ¶
func ExtractLink(doc *goquery.Document) []ScrapeResult
ExtractLink - Method | return all links in the current page. Including path, link, etc
Click to show internal directories.
Click to hide internal directories.