获取歌曲曲目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 StoredProcedureCall 1x Varchar输出1x游标输出   java StackOverflower运行时错误   算法Java基准测试:确保对象在超出范围后不被重用   java在SpringDataNeo4j中使用RelationshipEntity保存节点的正确方法是什么?   命令行参数设置登录java的属性   Java泛型AnyType,如何允许调用任何方法?   java如何检查Html字符串和字符串   sql如何插入一个日期,然后从java执行的存储过程中向oracle数据库中插入的日期添加小时、分钟和秒   java 安卓 3布局相同的活动   安卓应用程序中的java毕达哥拉斯   使用javaw在批处理文件中运行JAR的服务会在process explorer XYNTService中产生多个java进程   java需要在Derby中编写正确的查询   多线程Java在缓存中为多个线程保存变量   持久化java实体引用问题   java在SpringMVC应用程序中使用本地线程安全吗?   JavaSwing,100个文本字段都有类似的任务,所以我想写一个函数来完成这个任务   java我们在新字符串(“literal”)中放置的字符串文字发生了什么变化;   java注入需要在GUI中使用枚举的对象   在Spark SQL中加载JDBC表时java数据不正确