Documentation ¶
Index ¶
- Constants
- func ExtractCharset(htmlContent string) string
- func ExtractContentTypeCharset(contentType string) (charset string)
- func InsertInto(s string, interval int, sep rune) string
- func NewClient(options ...ClientOption) (*http.Client, error)
- func NewTransport(uri string) (*http.Transport, error)
- func RequestOnce(client *http.Client, uri string) (banner *rule.Banner, redirectURL string, err error)
- func ResponseDecoding(body []byte, label string) string
- type ClientOption
- type Crawl
- type Options
Constants ¶
View Source
const JSExecuteTemplate = `` /* 813-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func ExtractCharset ¶
func NewTransport ¶
NewTransport 创建一个带有 SOCKS5 代理的 http.Transport
func RequestOnce ¶
func ResponseDecoding ¶
Types ¶
type ClientOption ¶
func WithRedirectPolicy ¶
WithRedirectPolicy 自定义重定向策略
type Crawl ¶
type Crawl struct {
// contains filtered or unexported fields
}
func (*Crawl) ExecuteWithPlugin ¶
Click to show internal directories.
Click to hide internal directories.