spotify ripper
1.0.0
使用PySpotify v2.x的Spotify-Ripper的叉子
Spotify-Ripper是Spotify的小型开膛手脚本,可将Spotify Uris撕裂到MP3文件,并包含ID3标签和封面艺术。
请注意,流撕裂违反了libspotify的tos
从Spotify PCM流中实时VBR或CBR撕裂
写入ID3标签(包括专辑封面)
根据以下结构艺术家/专辑/艺术家-Song.mp3创建文件和目录
可选跳过现有文件
接受曲目,播放列表,专辑和艺术家Uris
使用Spotify查询搜索曲目
交互式登录的选项(Shell历史记录中没有密码)和使用以前的凭据重胶蛋白
成功撕裂后,从播放列表中删除曲目的选项
usage: ripper [-h] [-b {160,320,96}] [-c] [-d DIRECTORY] [-u USER]
[-p PASSWORD] [-l] [-m] [-o] [-v VBR]
uri
Rips Spotify URIs to MP3s with ID3 tags and album covers
positional arguments:
uri Spotify URI (either URI, a file of URIs or a search query)
optional arguments:
-h, --help show this help message and exit
-b {160,320,96}, --bitrate {160,320,96}
Bitrate rip quality [Default = 320]
-c, --cbr Lame CBR encoding [Default = VBR]
-d DIRECTORY, --directory DIRECTORY
Base directory where ripped MP3s are saved [Default = cwd]
-u USER, --user USER Spotify username
-p PASSWORD, --password PASSWORD
Spotify password [Default = ask interactively]
-l, --last Use last login credentials
-m, --pcm Saves a .pcm file with the raw PCM data
-o, --overwrite Overwrite existing MP3 files [Default = skip]
-v VBR, --vbr VBR Lame VBR encoding quality setting [Default = 0]
-r, --remove-from-playlist
Delete tracks from playlist after successful ripping [Default = no]
Example usage:
rip a single file: ./ripper.py -u user -p password spotify:track:52xaypL0Kjzk0ngwv3oBPR
rip entire playlist: ./ripper.py -u user -p password spotify:user:username:playlist:4vkGNcsS8lRXj4q945NIA4
search for tracks to rip: /ripper.py -l -b 160 -o " album:Rumours track:'the chain' "
libspotify
pyspotify
Spotify二进制应用键(Spotify_appkey.key)
瘸
眼睛3
Colorama
推荐方法使用自制和pyenv
$ git clone https://github.com/jrnewell/spotify-ripper.git
$ cd spotify-ripper
$ brew install homebrew/binary/libspotify
$ sudo ln -s /usr/local/opt/libspotify/lib/libspotify.12.1.51.dylib
/usr/local/opt/libspotify/lib/libspotify
$ pip install --pre pyspotify
$ brew install lame
$ pip install eyeD3 --allow-external eyeD3 --allow-unverified eyeD3
$ pip install colorama
$ pyenv rehash
从https://devaccount.spotify.com/my-account/keys/
下载应用程序密钥文件spotify_appkey.key
(需要一个Spotify Premium帐户),然后移至spotify-ripper
目录。
推荐方法使用pyenv
$ git clone https://github.com/jrnewell/spotify-ripper.git
$ cd spotify-ripper
$ sudo apt-get install lame build-essential libffi-dev
$ wget https://developer.spotify.com/download/libspotify/libspotify-12.1.51-Linux-x86_64-release.tar.gz # (assuming 64-bit)
$ cd libspotify-12.1.51-Linux-x86_64-release/
$ sudo make install prefix=/usr/local
$ cd ..
$ pip install --pre pyspotify
$ pip install eyeD3 --allow-external eyeD3 --allow-unverified eyeD3
$ pip install colorama
$ pyenv rehash
从https://devaccount.spotify.com/my-account/keys/
下载应用程序密钥文件spotify_appkey.key
(需要一个Spotify Premium帐户),然后移至spotify-ripper
目录。
麻省理工学院许可证