从本地m3u播放列表创建/更新Spotify播放列表

tospotif的Python项目详细描述


将本地播放列表转换为Spotify播放列表

Build, Test, LintPyPI version

目前为m3u文件工作;m3u8支持即将到来!在

使用

usage: tospotify [-h] [-v] [--public] [--playlist-id PLAYLIST_ID]
                 spotify_username playlist_path

Create/update a Spotify playlist from a local m3u playlist

positional arguments:
  spotify_username      Spotify username where playlist should be updated.
                        Your email address should work just fine, or could
                        find your user id through e.g. the developer console
  playlist_path         full path to the playlist

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         print all the steps when searching for songs
  --public              playlist is public, otherwise private
  --playlist-id PLAYLIST_ID
                        do not create a new playlist, instead update the
                        existing playlist with this id

示例

  • Linux/MacOS操作系统

    ^{pr2}$ 在
  • 窗口*

      python -m tospotify "john.doe@gmail.com" "D:/playlist/name.m3u"
    

*entry_points似乎不能简单地在Windows上工作

要求

  1. 首先需要启用开发人员仪表板和你的“应用程序”。在

  2. 设置一些环境变量:

Linux

export SPOTIPY_CLIENT_ID="<paste-from-dev-dashboard>"
export SPOTIPY_CLIENT_SECRET="<paste-from-dev-dashboard>"
export SPOTIPY_REDIRECT_URI="<your-chosen-uri>"

Windows

与linux相同,但是使用set而不是{}

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

推荐PyPI第三方库


热门话题
Java:字符串。RTL设备语言用标志“+”格式化,数字后加符号   java GAE作为桌面应用程序(Swing)的服务提供商   java将InputStream转换为FileInputStream不适用于Apache POI   java外部Voronoi库“网格”:什么是草图和处理?   重载重写的泛型方法java   java显示组织上设置的错误。springframework。验证。jsp中的错误对象   java一些Spring模型属性没有显示在我的JSP中   java无法编译Guava 23的SimpleTimeLimiter示例   java如何更改JTree中的“根”目录名?   java如何在安卓中对相对布局产生连锁反应?   java错误:org。冬眠例外SQLGrammarException:无法提取结果集,dateAccessed是未知列   如何使用java监听JSON文件更新   由抽象封闭类创建的匿名内部类能否通过反射确定实现类?