Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpDownloader ¶
type HttpDownloader struct { //如果网页中存在不完整的content-type 则默认 DefaultContentType string }
HTTP下载器 The HttpDownloader download page by package net/http. The "html" content is contained in dom parser of package goquery. The "json" content is saved. The "jsonp" content is modified to json. The "text" content will save body plain text only. The page result is saved in Page.
func NewHttpDownloader ¶
func NewHttpDownloader(ct string) *HttpDownloader
Click to show internal directories.
Click to hide internal directories.