Quotation from Sina source
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package sina
|
|
|
|
import (
|
|
"github.com/gocolly/colly"
|
|
"time"
|
|
)
|
|
|
|
type ISpiderIntface interface {
|
|
Url() string
|
|
Collector(c *colly.Collector)
|
|
OnRequest(r *colly.Request)
|
|
OnResponse(res *colly.Response)
|
|
Start()
|
|
}
|
|
|
|
type Spider struct {
|
|
C *colly.Collector
|
|
Timer *time.Ticker // 个股
|
|
}
|
|
|