Search, Download and Play your favorite songs right away from the command-line. High-Quality MP3 Files upto 320kbps bitrate with Metadata.
Developer : @wiz64
Status :In Development
Version :v 1.2.0
Last Updated :April 2023
Written in - Python
Compatible with Linux, Windows, Android(Termux) & MacOS
- ❤️ Free and Open Source
- 📙 A large library of tracks
- 🚀 Search and Download tracks directly
- ⚙️ Cross Platform - Linux, Windows, MacOS, Android(termux)
- 🎶 Upto 320kbps MP3 files with Metadata
- 🎧 Download Multiple tracks at once
Quickstart / Compiled
- Install ffmpeg
- Download, Extract zip and run
chmod +x saavn-cli
./saavn-cli search english songs
Enter comma-seperated numbers for the tracks you want to download - 1,4,12,15
..There you go !
- Python Script
Universal :
pip install -r requirements.txt
python saavn-cli.py search english songs
When a user runs the script to search or download songs,
The script requests download links, album art, album details, etc from the unofficial API. It downloads the raw files and then compiles them using ffmpeg.
- ffmpeg
- Python (v3)
To check if ffmpeg is properly installed, run
ffmpeg -version
Download ffmpeg
- Termius/Linux :
sudo apt install ffmpeg
- MacOS (Homebrew) :
brew install ffmpeg
check brew.sh - Windows users can copy
ffmpeg.exe
toC:\Windows\System32
or any other$PATH
Directory
With pyinstaller
pip install -U pyinstaller
python3 -m PyInstaller --icon=icon.ico --onefile saavn-cli.py -n saavn-cli
The Executable file will be saved to dist
folder
Example Command :
./saavn-cli search:160 English Songs
- Here
saavn-cli
is argv[0], the script entry point search:160
is argv[1], action and bitrate option, seperated by: colon
asACTION:BITRATE
.- Action is Necessary but Bitrate is optional, 320 by default.
English Songs
- Rest Arguments are "terms" used to query the API in search action or Links/IDs seperated by spacing in download mode
To search for songs available on Saavn and download MP3 to current directory.
Syntax : saavn-cli <s/search> <query>
Argument : s or search
Bitrate can be added optionally.
Example:
./saavn-cli s:160 DJ Snake
Syntax : saavn-cli download LINK1 LINK2 ID1 ID2
Argument : d or download
Bitrate can be added optionally.
Supports Multiple Links/IDs
Example :
saavn-cli download IEBQ7- DFEHNB- SJADKEi
(Optional) To specify bitrate, pass the desired bitrate to right of :
after action.
Supported Values : 320 (default), 160, 96, 48, 12
Example:
saavn-cli search:96 Magneta Riddim
To check for updates, run command
saavn-cli update
- adding link-download support
- album, artist search
I dedicate this project to a special one. Any guess who are they ?
Anyone is free to contribute to this project, fixing bugs, optimising code, improving documentation, testing, feedback, etc.
Copyright © 2022 wiz64
The source code of this tool has been licensed under MIT License
, Read the LICENSE File for more info.
I am not responsible for anything related to Third-Party copyright holders, This script comes with absolutely no warranties. Kindly use at your own risk.
We do not host or serve the Music files on our servers or accounts.