4 个稳定版本
1.1.0 | 2024年1月7日 |
---|---|
1.0.2 | 2024年1月6日 |
0.0.3 |
|
76 在 #spotify
每月48次下载
28KB
72 行
spot_dwl
使用spotify从youtube下载音乐的应用程序
I
需要Spotify premium
II
在您的系统上安装libnotify、pip、ffmpeg。
III
sudo pip3 install spotdl
IV
spotdl --download-ffmpeg
V
spotdl --generate-config
配置
配置文件位于linux下的 ~/.spotdl/config.json。
{
"client_id": "5f573c9620494bae87890c0f08a60293",
"client_secret": "212476d9b0f3472eaa762d90b19b0ba8",
"auth_token": null,
"user_auth": false,
"headless": false,
"cache_path": "/Users/username/.spotdl/.spotipy",
"no_cache": false,
"max_retries": 3,
"audio_providers": [
"youtube-music"
],
"lyrics_providers": [
"genius",
"azlyrics",
"musixmatch"
],
"playlist_numbering": false,
"scan_for_songs": false,
"m3u": null,
"output": "{artists} - {title}.{output-ext}",
"overwrite": "skip",
"search_query": null,
"ffmpeg": "ffmpeg",
"bitrate": null,
"ffmpeg_args": null,
"format": "mp3",
"save_file": null,
"filter_results": true,
"threads": 4,
"cookie_file": null,
"restrict": false,
"print_errors": false,
"sponsor_block": false,
"preload": false,
"archive": null,
"load_config": true,
"log_level": "INFO",
"simple_tui": false,
"fetch_albums": false,
"id3_separator": "/",
"ytm_data": false,
"add_unavailable": false,
"web_use_output_dir": false,
"port": 8800,
"host": "localhost",
"keep_alive": false,
"allowed_origins": null,
"keep_sessions": false
}
安装
cargo install spot_dwl
用法
spot_dwl "song-url" "song url" ...
所有歌曲URL都以 https://open.spotify.com 开头
依赖项
~15KB