kuwo

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
)

Variables

This section is empty.

Functions

func GetAlbumSongs

func GetAlbumSongs(id string) ([]model.Song, error)

func GetDownloadURL

func GetDownloadURL(s *model.Song) (string, error)

func GetLyrics

func GetLyrics(s *model.Song) (string, error)

func GetPlaylistSongs

func GetPlaylistSongs(id string) ([]model.Song, error)

func GetRecommendedPlaylists

func GetRecommendedPlaylists() ([]model.Playlist, error)

GetRecommendedPlaylists 获取推荐歌单 (新增)

func Parse

func Parse(link string) (*model.Song, error)

func ParseAlbum

func ParseAlbum(link string) (*model.Playlist, []model.Song, error)

func ParsePlaylist

func ParsePlaylist(link string) (*model.Playlist, []model.Song, error)
func Search(keyword string) ([]model.Song, error)

func SearchAlbum

func SearchAlbum(keyword string) ([]model.Playlist, error)

func SearchPlaylist

func SearchPlaylist(keyword string) ([]model.Playlist, error)

Types

type Kuwo

type Kuwo struct {
	// contains filtered or unexported fields
}

func New

func New(cookie string) *Kuwo

func (*Kuwo) GetAlbumSongs

func (k *Kuwo) GetAlbumSongs(id string) ([]model.Song, error)

GetPlaylistSongs 获取歌单详情(解析歌曲列表)

func (*Kuwo) GetDownloadURL

func (k *Kuwo) GetDownloadURL(s *model.Song) (string, error)

GetDownloadURL 获取下载链接

func (*Kuwo) GetLyrics

func (k *Kuwo) GetLyrics(s *model.Song) (string, error)

GetLyrics 获取歌词

func (*Kuwo) GetPlaylistSongs

func (k *Kuwo) GetPlaylistSongs(id string) ([]model.Song, error)

func (*Kuwo) GetRecommendedPlaylists

func (k *Kuwo) GetRecommendedPlaylists() ([]model.Playlist, error)

GetRecommendedPlaylists 获取推荐歌单 (酷我热门歌单)

func (*Kuwo) Parse

func (k *Kuwo) Parse(link string) (*model.Song, error)

func (*Kuwo) ParseAlbum

func (k *Kuwo) ParseAlbum(link string) (*model.Playlist, []model.Song, error)

func (*Kuwo) ParsePlaylist

func (k *Kuwo) ParsePlaylist(link string) (*model.Playlist, []model.Song, error)

ParsePlaylist 解析歌单链接

func (*Kuwo) Search

func (k *Kuwo) Search(keyword string) ([]model.Song, error)

Search 搜索歌曲

func (*Kuwo) SearchAlbum

func (k *Kuwo) SearchAlbum(keyword string) ([]model.Playlist, error)

SearchAlbum 搜索专辑

func (*Kuwo) SearchPlaylist

func (k *Kuwo) SearchPlaylist(keyword string) ([]model.Playlist, error)

Jump to

Keyboard shortcuts

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