Documentation
¶
Index ¶
- Constants
- func DecodeHTMLBody(body io.Reader) (io.Reader, error)
- func GetHostByURL(url string) string
- func GetLogger() *logger.Logger
- func GetPage(url, ua string) (io.Reader, error)
- func IsExist(fileName string) bool
- func Nodetext(node *html.Node) string
- func ParseRule(rule string) (string, int, int)
- func ParseRules(doc interface{}, rule string) (*goquery.Selection, string)
- func PostPage(url, key, ua string) (io.Reader, error)
- func RemoveNodes(srcNodes, removeNodes []*html.Node) []*html.Node
- func URLFix(uri, host string) string
Constants ¶
View Source
const UserAgent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.108 Safari/537.36"
Variables ¶
This section is empty.
Functions ¶
func DecodeHTMLBody ¶
DecodeHTMLBody returns an decoding reader of the html Body for the specified `charset` If `charset` is empty, DecodeHTMLBody tries to guess the encoding from the content
func GetHostByURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.