Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScoreByBattle ¶
Types ¶
type PageCrawler ¶
type PageCrawler struct {
Loader
}
func NewPageCrawler ¶
func NewPageCrawler() *PageCrawler
func (*PageCrawler) ScanBoard ¶
func (c *PageCrawler) ScanBoard(ctx context.Context, board string, from, to time.Time) <-chan ScanResult
func (*PageCrawler) Trending ¶
func (s *PageCrawler) Trending(ctx context.Context, opts ...TrendingOption) ([]Trending, error)
type Post ¶
type Post struct { ID string `json:"id"` URL string `json:"url"` CreatedAt time.Time `json:"createdAt"` Title string `json:"title"` Re bool `json:"reply"` Author string `json:"author"` TextContent string `json:"textContent"` PushTotal int `json:"pushTotal"` BattlePush int `json:"battlePush"` UniquePush int `json:"uniquePush"` PushUp int `json:"pushUp"` PushDown int `json:"pushDown"` }
func (*Post) MarshalJSON ¶
type ScanResult ¶
Click to show internal directories.
Click to hide internal directories.