ส้อม Spotify-Ripper ที่ใช้ pyspotify v2.x
Spotify-Ripper เป็นสคริปต์ Ripper ขนาดเล็กสำหรับ Spotify ที่ Rips Spotify Uris ไปยังไฟล์ MP3 และรวมถึงแท็ก ID3 และ Cover Art
โปรดทราบว่าสตรีมริปละเมิด TOS ของ Libspotify
REANTIME VBR หรือ CBR Ripping จาก Stream Spotify PCM
เขียนแท็ก ID3 (รวมถึงปกอัลบั้ม)
สร้างไฟล์และไดเรกทอรีตามโครงสร้างศิลปิน/อัลบั้ม/ศิลปินต่อไปนี้ - song.mp3
เลือกข้ามไฟล์ที่มีอยู่
ยอมรับแทร็กเพลย์ลิสต์อัลบั้มและศิลปิน Uris
ค้นหาแทร็กโดยใช้สปอตติฟแบบสอบถาม
ตัวเลือกสำหรับการเข้าสู่ระบบแบบอินเทอร์แอคทีฟ (ไม่มีรหัสผ่านในประวัติเชลล์) และ relogin โดยใช้ข้อมูลรับรองก่อนหน้า
ตัวเลือกในการลบแทร็กจากเพลย์ลิสต์หลังจากประสบความสำเร็จในการริป
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
คีย์แอพ Binary Spotify (Spotify_Appkey.key)
ไม่ได้เรื่อง
eyed3
colorama
วิธีการแนะนำใช้ Homebrew และ 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
ดาวน์โหลดไฟล์คีย์แอปพลิเคชัน spotify_appkey.key
จาก https://devaccount.spotify.com/my-account/keys/
(ต้องใช้บัญชี 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
ดาวน์โหลดไฟล์คีย์แอปพลิเคชัน spotify_appkey.key
จาก https://devaccount.spotify.com/my-account/keys/
(ต้องใช้บัญชี Spotify Premium) และย้ายไปยังไดเรกทอรี spotify-ripper
ใบอนุญาต MIT