crawl

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BgmiRoot = "http://api.bgm.tv/"
)

Functions

func BgmiRequest

func BgmiRequest(req *http.Request) (*http.Response, error)

func DownloadFile

func DownloadFile(filepath string, remote io.ReadCloser) error

func NewCollector

func NewCollector() *colly.Collector

func SetProxy

func SetProxy(c *colly.Collector)

func UrlEncode

func UrlEncode(s string) (utoa string)

Types

type BgmiSubjIntro

type BgmiSubjIntro struct {
	Id         int               `json:"id"`
	Url        string            `json:"url"`
	Type       int               `json:"type"`
	Name       string            `json:"name"`
	NameCN     string            `json:"name_cn"`
	Summary    string            `json:"summary"`
	AirDate    string            `json:"air_date"`
	AirWeekday int               `json:"air_weekday"`
	Images     map[string]string `json:"images"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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