akul08/Spotify-Downloader

语言: Python

git: https://github.com/akul08/Spotify-Downloader

一个python脚本,用于下载我的spotify播放列表,用于离线播放歌曲。
A python script to download my spotify playlist for offline playing of songs.
README.md (中文)

Spotify的下载

一个python脚本,用于下载我的spotify播放列表,用于离线播放歌曲。

如何开始使用它。

  • 克隆repo cd && git clone https://github.com/akul08/Spotify-Downloader.git&& cd Spotify-Downloader
  • 安装依赖项: 点子安装spotipy pip安装beautifulsoup4 pip install --upgrade google-api-python-client pip安装请求
  • 在终端运行这些命令: export SPOTIPY_CLIENT_ID ='06e4213bc2324960891fc9713cc3e82d' export SPOTIPY_CLIENT_SECRET ='ad8fd4b52f8c4c62bfeaa0e48d8e305d' export SPOTIPY_REDIRECT_URI ='http:// localhost:8888 / callback'
  • 现在,运行脚本python spotify.py your_spotify_username
  • 验证终端中指定的帐户。
  • 完成此步骤后,您将把歌曲放在类似于playlist.txt的文件中。
  • 现在,用你的播放列表运行脚本python download.py -f =“playlist.txt”
  • 更多的选择 : --q用于指定要下载的歌曲 --m表示可供选择的最大歌曲列表。 --mp4下载视频而不是音频。
  • 简单。不是吗请享用。

本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

Spotify-Downloader

A python script to download my spotify playlist for offline playing of songs.

How to Start Using It.

  • Clone the repo cd && git clone https://github.com/akul08/Spotify-Downloader.git && cd Spotify-Downloader

  • Install the dependencies :

    • pip install spotipy

    • pip install beautifulsoup4

    • pip install --upgrade google-api-python-client

    • pip install requests

  • In terminal Run these commands:

    • export SPOTIPY_CLIENT_ID='06e4213bc2324960891fc9713cc3e82d'
    • export SPOTIPY_CLIENT_SECRET='ad8fd4b52f8c4c62bfeaa0e48d8e305d'
    • export SPOTIPY_REDIRECT_URI='http://localhost:8888/callback'
  • Now, run the script python spotify.py your_spotify_username

  • Verify Your account as specified in terminal.

  • After this step you will have your songs in a file similar to playlist.txt .

  • Now, run the script with your playlist python download.py -f="playlist.txt"

  • More options :

    --q for specifing a song to download
    --m for maximum list of songs to choose from.
    --mp4 to download video instead of audio.

  • Simple. Isn't It. Enjoy.