Documentation ¶
Overview ¶
Package collectlinks does extraordinarily simple operation of parsing a given piece of html and providing you with all the hyperlinks hrefs it finds.
Index ¶
- Constants
- Variables
- func All(httpBody io.Reader) []string
- func CollectMailsAsync(in chan http.Response) chan string
- func CollectNamesAndPhonesAsync(in chan http.Response) chan string
- func CollectNamesAsync(in chan http.Response) chan string
- func CollectPhonesAsync(in chan http.Response) chan string
- func FetchPagesAsync(searchWord string, location string, pages string) chan http.Response
- func Names(httpBody io.Reader) []string
- func SetSearchSite(searchSite string) error
- type Record
Constants ¶
const ( SleepDuration = 1 //XO ΧρυσοςΟδηγος XO = iota //VR Vrisko.gr VR )
Variables ¶
var SearchSite int
SearchSite The site you want goldenRuffian to search
Functions ¶
func All ¶
All takes a reader object (like the one returned from http.Get()) It returns a slice of strings representing the "href" attributes from anchor links found in the provided html. It does not close the reader passed to it.
func CollectMailsAsync ¶
CollectMailsAsync searches the pages provided in the channel for mails
func CollectNamesAndPhonesAsync ¶
CollectNamesAsync searches the pages provided in the channel for names
func CollectNamesAsync ¶
CollectNamesAsync searches the pages provided in the channel for names
func CollectPhonesAsync ¶
CollectMailsAsync searches the pages provided in the channel for telephones
func FetchPagesAsync ¶
FetchPagesAsync fetches html page based on what, where and page number and puts them in a channel
func SetSearchSite ¶
SetSearchSite set the website you want to search