🎵 GroveGrab CLI
A powerful command-line tool for downloading Spotify tracks, playlists, albums, and artists using your own Spotify API credentials.
✨ Features
- 🎵 Download Everything - Tracks, playlists, albums, and artists
- 🔐 Your API Credentials - Use your own Spotify API to avoid rate limits
- 🎨 Beautiful CLI - Rich terminal UI with progress bars and colors
- 📋 Individual Song Progress - See each song's download progress in playlists/albums
- 🎧 High Quality - Download in MP3 (up to 320kbps), FLAC, OGG, OPUS, or M4A
- ⚡ Fast & Efficient - Concurrent downloads with real-time progress
- 📊 Task Management - List, cancel, retry, and view logs for all downloads
- 🔄 Batch Downloads - Download multiple URLs from a file
- 💾 Smart Caching - Skip already downloaded tracks
- 💻 Windows Compatible - Full support for Windows console (no Unicode issues)
📦 Installation
Option 1: Install from PyPI (Recommended)
pip install GroveGrabCLI
Option 2: Install from Source
git clone https://github.com/yourusername/grovegrab-cli.git
cd grovegrab-cli
pip install -e .
Option 3: Install on Android (Termux)
-
Install Termux from F-Droid (NOT Play Store - outdated version)
-
Update packages and install dependencies:
pkg update && pkg upgrade pkg install python ffmpeg
-
Install GroveGrab:
pip install GroveGrabCLI
-
Set up storage access (IMPORTANT for Android):
termux-setup-storage
This allows access to your phone's internal storage and SD card.
-
Configure download directory:
grovegrab authWhen prompted for download path, use:
- Internal Storage:
/storage/emulated/0/Music/GroveGrab - SD Card:
/storage/XXXX-XXXX/Music/GroveGrab(replace XXXX with your SD card ID)
To find your SD card path:
ls /storage/ - Internal Storage:
Prerequisites
- Python 3.8+
- FFmpeg - Required by SpotDL for audio conversion
# Windows (Chocolatey) choco install ffmpeg # macOS brew install ffmpeg # Linux (Ubuntu/Debian) sudo apt install ffmpeg # Android (Termux) pkg install ffmpeg
🚀 Quick Start
⚠️ IMPORTANT: First Time Setup Required
Before downloading anything, you MUST configure Spotify API credentials:
grovegrab auth
This will guide you through getting free API credentials from Spotify.
How to get Spotify API credentials (FREE):
- Go to Spotify Developer Dashboard
- Log in with your Spotify account (free account works!)
- Click "Create an App"
- Enter App Details:
- App name:
My GroveGrab(or any name you like) - App description:
Personal music downloader - Check the agreement boxes
- Click "Create"
- App name:
- Copy your credentials:
- You'll see your Client ID on the app page - copy it
- Click "Show Client Secret" - copy it too
- ⚠️ Keep these private!
- Configure Redirect URIs (IMPORTANT):
- Click "Edit Settings" button
- Scroll to "Redirect URIs"
- Enter:
http://localhost:8888/callback - Click "Add"
- Also add:
http://127.0.0.1:8888/callback - Click "Add" again
- Scroll down and click "Save"
- Configure GroveGrab:
grovegrab authPaste your Client ID and Client Secret when prompted
Download Your First Track
grovegrab dl "https://open.spotify.com/track/..."
That's it! 🎉
📖 Usage
Basic Commands
# Download a track/playlist/album
grovegrab dl "spotify_url"
# Download with custom settings
grovegrab dl "url" --format flac --quality 320k --output ~/Music
# Watch progress in real-time
grovegrab dl "url" --watch
# Run in background
grovegrab dl "url" --detach
Configuration
# Run setup wizard
grovegrab auth
# Show current configuration
grovegrab config --show
# Reset configuration
grovegrab config --reset
Task Management
# List active downloads
grovegrab list
# List all downloads (including completed)
grovegrab list --all
# Cancel a download
grovegrab cancel <task-id>
# Retry a failed download
grovegrab retry <task-id>
# View logs
grovegrab logs <task-id>
# Follow logs in real-time
grovegrab logs <task-id> --follow
Batch Downloads
# Download from a file containing URLs
grovegrab batch urls.txt
# With custom worker count
grovegrab batch urls.txt --workers 5
Example urls.txt:
https://open.spotify.com/track/...
https://open.spotify.com/playlist/...
https://open.spotify.com/album/...
Other Commands
# Show version
grovegrab version
# Get help
grovegrab --help
grovegrab dl --help
🎨 Screenshots
Single Track Download
Starting download: track
Downloading: Artist - Song Name ████████████░░░░░░░░ 60%
Playlist Download (Individual Songs)
Starting download: playlist
Overall: 15/31 tracks (2 failed) ████████████░░░░░░░░ 48%
Anirudh Ravichander - Pathala Pathala ───────────── 100%
The Weeknd - Blinding Lights ────────────────────── 100%
Drake - God's Plan ───────────────────────────────── 75%
Ed Sheeran - Shape of You ────────────────────────── 30%
Task List
┌─ Download Tasks ────────────────────────────────────────────┐
│ ID Status Progress Current Track Stats │
├──────────────────────────────────────────────────────────────┤
│ a1b2c3d4 > running 67% Drake - Hotline 3/5 │
│ e5f6g7h8 OK completed 100% - 10/10 │
│ i9j0k1l2 ERR failed 45% - 5/12 (2) │
└──────────────────────────────────────────────────────────────┘
⚙️ Configuration
Configuration is stored at:
- Linux/Mac:
~/.config/grovegrab/config.json - Windows:
%APPDATA%\grovegrab\config.json
Environment Variables
You can also set credentials via environment variables:
export SPOTIFY_CLIENT_ID="your_client_id"
export SPOTIFY_CLIENT_SECRET="your_client_secret"
export GROVEGRAB_OUTPUT="~/Music"
Configuration Options
| Setting | Default | Options |
|---|---|---|
audio_format |
mp3 |
mp3, flac, ogg, opus, m4a |
audio_quality |
320k |
128k, 192k, 256k, 320k |
default_download_path |
Platform-specific (see below) | Any valid path |
Default Download Paths:
- Windows/Mac/Linux:
~/Music/GroveGrab - Android (Termux):
/storage/emulated/0/Music/GroveGrab
Changing Download Directory
Option 1: During Setup
grovegrab auth
# Enter your desired path when prompted
Option 2: Edit Config File
# Windows
notepad %APPDATA%\grovegrab\config.json
# Mac/Linux
nano ~/.config/grovegrab/config.json
# Android (Termux)
nano ~/.config/grovegrab/config.json
Change the default_download_path value:
{
"default_download_path": "/storage/emulated/0/Music/MyFolder"
}
Option 3: Per Download
grovegrab dl "url" --output /path/to/folder
🛠️ Development
Setup Development Environment
# Clone the repository
git clone https://github.com/yourusername/grovegrab-cli.git
cd grovegrab-cli
# Install in editable mode with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black grovegrab/
# Lint code
flake8 grovegrab/
Project Structure
grovegrab-cli/
├── grovegrab/
│ ├── __init__.py # Package info
│ ├── __main__.py # Entry point
│ ├── cli.py # CLI commands
│ ├── core.py # Download manager
│ ├── config.py # Configuration
│ └── ui.py # Terminal UI
├── tests/ # Unit tests
├── docs/ # Documentation
├── requirements.txt # Dependencies
├── setup.py # Setup script
└── pyproject.toml # Project metadata
🐛 Troubleshooting
❌ "No client_id. Pass it or set a SPOTIPY_CLIENT_ID environment variable"
This is the most common issue! You need to configure Spotify API credentials first:
# Run this command to set up your credentials:
grovegrab auth
Get free credentials from Spotify Developer Dashboard (see Quick Start section above).
FFmpeg not found
# Install FFmpeg first
# Windows: choco install ffmpeg
# Mac: brew install ffmpeg
# Linux: sudo apt install ffmpeg
No internet connection
# Check your network connection
ping google.com
Download fails
# View detailed logs
grovegrab logs <task-id>
# Retry the download
grovegrab retry <task-id>
Invalid credentials
# Re-run setup
grovegrab auth
# Or check your credentials at
# https://developer.spotify.com/dashboard
Config location
Your configuration is stored at:
- Windows:
C:\Users\YourName\AppData\Local\grovegrab\grovegrab\config.json - Linux/Mac:
~/.config/grovegrab/config.json
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
⚠️ Legal Notice
This tool is for personal use only. Please comply with:
- Spotify's Terms of Service
- YouTube's Terms of Service (SpotDL uses YouTube as audio source)
- Copyright laws in your jurisdiction
Always support artists by using legitimate streaming services!
🙏 Acknowledgments
- SpotDL - The amazing tool that powers the downloads
- Typer - Beautiful CLI framework
- Rich - Gorgeous terminal formatting
- GroveGrab Web - The original web version this CLI is based on
📞 Support
Made with ❤️ for music lovers
If you enjoy this project, consider ⭐ starring the repository!
Metadata
Release files for GroveGrabCLI 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| grovegrabcli-1.0.6.tar.gz | 20.7 kB | Without provenance | Details for grovegrabcli-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| grovegrabcli-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for grovegrabcli-1.0.6-py3-none-any.whl |
Total release size: 42.9 kB
Release files / grovegrabcli-1.0.6.tar.gz
| Download URL | grovegrabcli-1.0.6.tar.gz |
|---|---|
| Size | 20.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05e414e841c7a0b56e2923f1912c81719b36067afcb6fda1fce89d531fedd228
|
|
BLAKE2b-256 checksum How to use checksums |
d8da4deb0d9a219a8f320277f3ee778a76cb095ef81ab566a1772cdd2f726afe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / grovegrabcli-1.0.6-py3-none-any.whl
| Download URL | grovegrabcli-1.0.6-py3-none-any.whl |
|---|---|
| Size | 22.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63d10702aadde2eda3f3fc61d3100241d0325525a6691e264b2cc1bdda086d9e
|
|
BLAKE2b-256 checksum How to use checksums |
b0c992cbbf1b81b8bb0ecc29be8c3d5591bc2255c860813eb5118a4bc63eed94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for GroveGrabCLI 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.