Documentation ¶
Index ¶
Constants ¶
View Source
const ( CONTENT_TYPE = "Content-Type" JSON_CONTENT_TYPE = "application/json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) ClearProxy ¶
func (this *Client) ClearProxy()
type HttpServer ¶
func NewHttpServer ¶
func NewHttpServer(setting *util.Settings, handler Http.Handler) *HttpServer
func (*HttpServer) Start ¶
func (this *HttpServer) Start(wg sync.WaitGroup)
type Request ¶
type Request struct { GoRequest *Http.Request CookieJar int // if the web site store message in cookie which show diffrent result,you shoud use it UniqueName string SpiderName string ParserName string // crawler will send the response to named parseFunction NodeName string Depth int Proxy string // proxy settings,just setting the proxy,downloader will take care of rest thing Retry int // fail and retry time }
what a request would do * basic request * global unique key * cookie jar index * spider belong to * parse belong to
func NewRequest ¶
func (*Request) SetNodeName ¶
Click to show internal directories.
Click to hide internal directories.