获取歌曲曲目ID/名称的包

trackRetriever的Python项目详细描述


追踪检索器

使人们更容易使用Spotify播放列表中的曲目

先决条件

我假设你已经做了一个Spotify项目,如果没有,你可以这样做here

You'll need your: username, client_id, client_secret, redirect_uri and userId 

安装

pip install trackRetriever

功能

我制作了getplaylistid和get playlist曲目作为gettrack的助手,但非常欢迎您使用它们

getTracks(username, client_id, client_secret,redirect_uri,getNames = False)

All the parameters should be input as string except getNames
When getNames is set to True getTracks will return a list of the names of the tracks in your playlists
When getNames is set to False getTracks will return a list of the track id's of the tracks in your playlists 
getPlaylistIds(playlists)

This will get the playlist id's of your playlists 
playlists = sp.user_playlists(userId) *userId is not your username* 
get_playlist_tracks(userId, playlist_id,sp)

sp is the spotify object created by spotipy.Spotify(auth=token)
playlist_id is the id of the playlist you want to retrieve the tracks for 

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java搜索按钮不适用于我   java制作一个应用程序来打开您自己的文件扩展名   XMemcached中的java异步集   java无法在Android上使用HTML5 canvas touch   java是否可以用PHP为Restlet创建客户端?   java在主题中添加图标。AppCompat。光   java Safari错误,无法打开浏览器   java gson解析json值中commaseparatedvalue字符串中的项   java如何使用Quarkus在卡夫卡的同一主题中设置多个使用者   java组织。json。JSONException:在{main}()的第6个字符处的main后面应该是“:”   windowbuilder如何将Java文件导出到GATE developer   java这与安卓 studio ide问题有关,在更新我们的ide之后   java Android将活动加载到类中<?>对象   java如何在springdatajpa中使用DISTINCT、GROUP BY和ORDER BY?   使用jlink的java可复制构建