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

information

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubjId            = "sid"
	SubjName          = "中文名"
	SubjOriginName    = "originName"
	SubjEpisode       = "话数"
	SubjStartTime     = "放送开始"
	SubjMoveStartTime = "上映年度"
	SubjectEndTime    = "播放结束"
	Alias             = "别名"
)

keys for info map Scrape from bgm.tv

View Source
const (
	TMDB_HOST      = "https://www.themoviedb.org"
	TMDB_TYP_TV    = "tv"
	TMDB_TYP_MOVIE = "movie"
)
View Source
const OriginNameXpath = `/html/body[@class='bangumi']/div[@id='wrapperNeue']/div[@id='headerSubject']/h1[@class='nameSingle']/a`

Variables

View Source
var InfoAPIs = map[string]string{
	"search":  "/subject_search/%s?cat=2",
	"subject": "/subject/%d",
}
View Source
var TMDBAPIs = map[string]string{
	"search": "/search/%s?query=%s",
}

Functions

func BgmTVInfoScrape

func BgmTVInfoScrape(sid int) (tips map[string]string, err error)

func BgmiApiSearch

func BgmiApiSearch(searchstr string) (sid int, err error)

func BuildInfoSearching

func BuildInfoSearching(s string) string

func DoScrape

func DoScrape(url string) (tips map[string]string, err error)

func FloderSearch

func FloderSearch(typ, searchstr string) (name, date string, err error)

func InfoPageScrape deprecated

func InfoPageScrape(searchstr string) (p string, err error)

Deprecated: use bgmi search api

func Scrape

func Scrape(searchstr string) (tips map[string]string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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