sina

package
v0.0.0-...-cb0dfd9 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ISpiderIntface

type ISpiderIntface interface {
	Url() string
	Collector(c *colly.Collector)
	OnRequest(r *colly.Request)
	OnResponse(res *colly.Response)
	Start()
}

type SinaIndex

type SinaIndex struct {
	Spider
}

func NewSinaIndex

func NewSinaIndex(c *colly.Collector) *SinaIndex

func (*SinaIndex) Collector

func (s *SinaIndex) Collector(c *colly.Collector)

func (*SinaIndex) OnRequest

func (s *SinaIndex) OnRequest(r *colly.Request)

func (*SinaIndex) OnResponse

func (s *SinaIndex) OnResponse(res *colly.Response)

func (*SinaIndex) Start

func (s *SinaIndex) Start()

func (*SinaIndex) Url

func (s *SinaIndex) Url() string

type SinaStock

type SinaStock struct {
	Spider
}

func NewSinaStock

func NewSinaStock(c *colly.Collector) *SinaStock

func (*SinaStock) Collector

func (s *SinaStock) Collector(c *colly.Collector)

func (*SinaStock) DecodeMarket

func (s *SinaStock) DecodeMarket(str string)

func (*SinaStock) OnRequest

func (s *SinaStock) OnRequest(r *colly.Request)

func (*SinaStock) OnResponse

func (s *SinaStock) OnResponse(res *colly.Response)

func (*SinaStock) Split

func (s *SinaStock) Split(r rune) bool

func (*SinaStock) Start

func (s *SinaStock) Start()

func (*SinaStock) Url

func (s *SinaStock) Url() string

type Spider

type Spider struct {
	C     *colly.Collector
	Timer *time.Ticker // 个股
}

Jump to

Keyboard shortcuts

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