Versions in this module Expand all Collapse all v1 v1.7.0 Oct 16, 2023 Changes in this version + const AllGuardURL + const NavURL + const VideoSummaryURL + func GetRealURL(url string) (realurl string, err error) + func SignURL(urlStr string) string type Card + CID int + type GuardUser struct + Dd [][]int64 + Face string + Mid int64 + Uname string + func GetAllGuard(mid string) (guardUser GuardUser, err error) + type VideoSummary struct + Code int + Data struct{ ... } + Message string + TTL int + func GetVideoSummary(id string) (videoSummary VideoSummary, err error) v1.6.0 Nov 21, 2022 Changes in this version type CookieConfig + func NewCookieConfig(file string) *CookieConfig v1.5.1 Oct 7, 2022 Changes in this version + const ArticleInfoURL + const CVURL + const DanmakuAPI + const DanmakuURL + const DynamicDetailURL + const LURL + const LiveListURL + const LiveRoomInfoURL + const LiveURL + const MedalWallURL + const MemberCardURL + const SearchUserURL + const SpaceHistoryURL + const TURL + const VURL + const VideoInfoURL + const VtbDetailURL + var ErrAPINeedCookie = errors.New("api need cookie") + func GetRealUrl(url string) (realurl string, err error) + func HumanNum(res int) string + type Card struct + AID any + Author any + AuthorName string + BannerURL string + BvID any + Cover string + Ctime int + Desc string + Dynamic any + ID int + ImageUrls []string + Intro string + Item struct{ ... } + LivePlayInfo struct{ ... } + Origin string + OriginImageUrls []string + Owner struct{ ... } + Pic string + PlayCnt int + Pubdate int + PublishTime int + ReplyCnt int + Rights struct{ ... } + Schema string + ShareSubtitle string + ShortID any + ShortLink string + Sketch struct{ ... } + Staff []struct{ ... } + Stat struct{ ... } + Stats struct{ ... } + Summary string + Title string + TypeInfo string + Upper string + User struct{ ... } + Vest struct{ ... } + func GetArticleInfo(id string) (card Card, err error) + func GetVideoInfo(id string) (card Card, err error) + func LoadCardDetail(str string) (card Card, err error) + type CookieConfig struct + BilibiliCookie string + func (cfg *CookieConfig) Load() (cookie string, err error) + func (cfg *CookieConfig) Save() (err error) + func (cfg *CookieConfig) Set(cookie string) (err error) + type Danmakusuki struct + Code int64 + Data struct{ ... } + Message string + type Desc struct + DynamicIDStr string + OrigType int + Origin struct{ ... } + Timestamp int + Type int + UserProfile struct{ ... } + type DynamicCard struct + Card string + Desc Desc + Extension struct{ ... } + func GetDynamicDetail(dynamicIDStr string) (card DynamicCard, err error) + func LoadDynamicDetail(str string) (card DynamicCard, err error) + type Medal struct + Uname string + func GetMedalWall(cookiecfg *CookieConfig, uid string) (result []Medal, err error) + type MedalData struct + Code int + Data struct{ ... } + Message string + type MedalInfo struct + Level int64 + MedalColorBorder int64 + MedalColorEnd int64 + MedalColorStart int64 + MedalName string + Mid int64 + type MedalSorter []Medal + func (m MedalSorter) Len() int + func (m MedalSorter) Less(i, j int) bool + func (m MedalSorter) Swap(i, j int) + type MemberCard struct + Attention int + Attentions []int64 + Birthday string + Coins float64 + Face string + Fans int + Friend int + LevelInfo struct{ ... } + Mid string + Name string + Regtime int64 + Sex string + Sign string + func GetMemberCard(uid any) (result MemberCard, err error) + type RoomCard struct + AnchorInfo struct{ ... } + RoomInfo struct{ ... } + func GetLiveRoomInfo(roomID string) (card RoomCard, err error) + type SearchData struct + Data struct{ ... } + type SearchResult struct + Gender int64 + Level int64 + Mid int64 + Uname string + Usign string + func SearchUser(cookiecfg *CookieConfig, keyword string) (r []SearchResult, err error) + type Vote struct + ChoiceCnt int + Desc string + Endtime int + JoinNum int + Options []struct{ ... } + type VtbDetail struct + AreaRank int + Follower int + GuardNum int + Mid int + Rise int + Roomid int + Uname string + Video int + func GetVtbDetail(uid string) (result VtbDetail, err error)