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
目錄。
麻省理工學院許可證