downloader

package
v0.0.0-...-926784e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2016 License: Apache-2.0 Imports: 13 Imported by: 2

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

func (*HttpDownloader) Download

func (self *HttpDownloader) Download(req *robot.Request) *robot.Page

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL