Documentation ¶
Index ¶
- func NewCnblogs(client *util.Client) schema.Worker
- func NewFlysnow(client *util.Client) schema.Worker
- func NewJD(client *util.Client) schema.Worker
- func NewLZFM(client *util.Client) schema.Worker
- func NewNeteaseStock(client *util.Client) schema.Worker
- func NewXLFM(client *util.Client) schema.Worker
- func NewXimalayaAlbum(client *util.Client) schema.Worker
- type Cnblogs
- func (s *Cnblogs) Do(tryModel bool, entry string, rule string, fp *os.File) error
- func (s *Cnblogs) Intro(category string) string
- func (s *Cnblogs) List() []map[string]string
- func (s *Cnblogs) Options() *schema.Option
- func (s *Cnblogs) Search(keyword string) []map[string]string
- func (s *Cnblogs) Task() error
- func (s *Cnblogs) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
- type Flysnow
- func (s *Flysnow) Do(tryModel bool, entry string, rule string, fp *os.File) error
- func (s *Flysnow) Intro(category string) string
- func (s *Flysnow) List() []map[string]string
- func (s *Flysnow) Options() *schema.Option
- func (s *Flysnow) Search(keyword string) []map[string]string
- func (s *Flysnow) Task() error
- func (s *Flysnow) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
- type JD
- func (s *JD) Do(tryModel bool, entry string, rule string, fp *os.File) error
- func (s *JD) Intro(category string) string
- func (s *JD) List() []map[string]string
- func (s *JD) Options() *schema.Option
- func (s *JD) Search(keyword string) []map[string]string
- func (s *JD) SearchWeb(keyword string) string
- func (s *JD) Task() error
- func (s *JD) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
- type JDGoods
- type JDSnapshot
- type LZFM
- func (s *LZFM) Do(tryModel bool, entry string, rule string, fp *os.File) error
- func (s *LZFM) Intro(category string) string
- func (s *LZFM) List() []map[string]string
- func (s *LZFM) Options() *schema.Option
- func (s *LZFM) Search(keyword string) []map[string]string
- func (s *LZFM) Task() error
- func (s *LZFM) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
- type NeteaseStock
- func (s *NeteaseStock) Do(tryModel bool, entry string, rule string, fp *os.File) error
- func (s *NeteaseStock) Intro(category string) string
- func (s *NeteaseStock) List() []map[string]string
- func (s *NeteaseStock) Options() *schema.Option
- func (s *NeteaseStock) Search(keyword string) []map[string]string
- func (s *NeteaseStock) Task() error
- func (s *NeteaseStock) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
- type XLFM
- func (s *XLFM) Do(tryModel bool, entry string, rule string, fp *os.File) error
- func (s *XLFM) Intro(category string) string
- func (s *XLFM) List() []map[string]string
- func (s *XLFM) Options() *schema.Option
- func (s *XLFM) Search(keyword string) []map[string]string
- func (s *XLFM) Task() error
- func (s *XLFM) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
- type XimalayaAlbum
- func (s *XimalayaAlbum) Do(tryModel bool, entry string, rule string, fp *os.File) error
- func (s *XimalayaAlbum) Intro(category string) string
- func (s *XimalayaAlbum) List() []map[string]string
- func (s *XimalayaAlbum) Options() *schema.Option
- func (s *XimalayaAlbum) Search(keyword string) []map[string]string
- func (s *XimalayaAlbum) Task() error
- func (s *XimalayaAlbum) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cnblogs ¶
type Cnblogs struct {
// contains filtered or unexported fields
}
Cnblogs 博客园内容抓取器
type Flysnow ¶
type Flysnow struct {
// contains filtered or unexported fields
}
Flysnow 飞雪无情博客内容抓取器
type JD ¶
type JD struct { Status int `json:"status" label:"程序状态, 0 未初始化 1 正常 2 下载数据中"` // contains filtered or unexported fields }
JD 京东商城数据抓取器
type JDGoods ¶
type JDGoods struct { CategoryId string `json:"categoryId" label:"品类ID"` Category string `json:"category" label:"品类名称"` WName string `json:"wname" label:"商品名称"` WareId string `json:"wareId" label:"商品ID"` MiaoShaPrice string `json:"miaoShaPrice" label:"秒杀价"` ImageURL string `json:"imageurl" label:"图片网址"` }
JDGoods 京东商品
type JDSnapshot ¶
type JDSnapshot struct { Ts int64 `json:"ts" label:"同步时间"` Goods []JDGoods `json:"goods" label:"商品列表"` }
JDSnapshot 缓存数据快照
type LZFM ¶
type LZFM struct {
// contains filtered or unexported fields
}
LZFM 荔枝 FM 专辑声音下载链接生成器
type NeteaseStock ¶
type NeteaseStock struct {
// contains filtered or unexported fields
}
func (*NeteaseStock) Search ¶
func (s *NeteaseStock) Search(keyword string) []map[string]string
Search 缓存搜索
func (*NeteaseStock) Web ¶
func (s *NeteaseStock) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
Web 模块 web 入口, 返回 true 表示已经准备就绪
type XLFM ¶
type XLFM struct {
// contains filtered or unexported fields
}
XLFM 心理 FM 专辑声音下载链接生成器
type XimalayaAlbum ¶
type XimalayaAlbum struct {
// contains filtered or unexported fields
}
XimalayaAlbum 喜马拉雅 FM 专辑声音下载链接生成器
func (*XimalayaAlbum) Search ¶
func (s *XimalayaAlbum) Search(keyword string) []map[string]string
Search 缓存搜索
func (*XimalayaAlbum) Web ¶
func (s *XimalayaAlbum) Web(w http.ResponseWriter, req *http.Request, buf *bytes.Buffer) bool
Web 模块 web 入口, 返回 true 表示已经准备就绪
Click to show internal directories.
Click to hide internal directories.