Help us shape the future of Go! Take the 2026 Go Developer Survey

crawl

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 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