Versions in this module Expand all Collapse all v1 v1.0.0 Jul 6, 2021 Changes in this version + const Priority_Level_1 + const Priority_Level_2 + const Priority_Level_3 + const Priority_Level_4 + type Page struct + DownloadSuccess bool + Headers map[string][]string + RawText string + RawTextBytes []byte + Request Request + UrlStr string + type Request struct + Body io.ReadCloser + Method string + Priority int32 + UrlStr string + type ResultItems struct + Items map[string]interface{} + Request Request + Skip bool + TargetRequests []Request + func (result *ResultItems) AddTargetRequests(requests []string, referer string) error + func (result *ResultItems) AddTargetRequestsPriority(requests []string, priority int32, referer string) error + func (result *ResultItems) AddTargetUrls(urls ...string) + func (result *ResultItems) AppendTargetRequest(request Request) + func (result *ResultItems) Get(key string) interface{} + func (result *ResultItems) InValidUrl(url string) bool + func (result *ResultItems) Put(key string, val interface{}) + func (result *ResultItems) SetRequest(request Request) + func (result *ResultItems) SetSkip(skip bool) + type Site struct + Charset string + Cookies map[string]map[string]string + CycleRetryTimes int32 + DefaultCookies map[string]string + Domain string + Headers map[string]string + RetrySleepTime time.Duration + RetryTimes time.Duration + SleepTime time.Duration + TimeOut time.Duration + UserAgent string + func CreateNewSite() *Site + func (site *Site) AddCookie(domain string, name string, val string) *Site + func (site *Site) AddDefaultCookie(name string, val string) *Site + func (site *Site) AddHeader(key string, val string) *Site