spider

package
v0.0.0-...-aa10552 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2016 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateProxyList

func UpdateProxyList(api client.KeysAPI)

更新代理服务

Types

type WechatArticle

type WechatArticle struct {
	Title     string `json:"title"`
	Url       string `json:"url"`
	Thumbnail string `json:"thumbnail"`
	Date      int    `json:"date"`
	SourceUrl string `json:"source_url"`
	Digest    string `json:"digest"`
}

func Spider

func Spider(wechatName string, proxyUrl *url.URL) ([]WechatArticle, error)

type WechatSpiderResult

type WechatSpiderResult struct {
	ID        string          `json:"id"`
	Data      []WechatArticle `json:"data"`
	Timestamp int64           `json:"timestamp"`
}

type WechatSpiderTask

type WechatSpiderTask struct {
	ID         string        `json:"id"`
	Name       string        `json:"name"`
	Status     int           `json:"status"`
	TTL        time.Duration `json:"ttl"`
	Timestamp  int64         `json:"timestamp"`
	UpdateTime int64         `json:"updateTime"`
	Note       string        `json:"note"`
}

Jump to

Keyboard shortcuts

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