Skip to main content

Download music from YouTube Music and Spotify via CLI

Project description

grabr

Download music from YouTube Music and Spotify via CLI.

Prerequisites

  • Python 3.10+
  • ffmpeg
# Windows
winget install ffmpeg

# macOS
brew install ffmpeg

# Linux (Debian/Ubuntu)
sudo apt install ffmpeg

Installation

pip install grabr

Usage

grabr <url>                        # download track/playlist/album
grabr <url> --format flac          # choose format (mp3/flac/opus)
grabr <url> --output ~/Downloads   # custom output directory
grabr search "query"               # search and pick interactively
grabr search "query" --source spotify
grabr search "query" --limit 8

Spotify Search Setup

Only needed for --source spotify.

  • Get free credentials at developer.spotify.com
  • Set environment variables:
SPOTIFY_CLIENT_ID=your_id
SPOTIFY_CLIENT_SECRET=your_secret

Output

Files are saved to ~/Music/grabr/ by default.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

grabr-0.1.0.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grabr-0.1.0-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file grabr-0.1.0.tar.gz.

File metadata

  • Download URL: grabr-0.1.0.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for grabr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0fa2b20d31e2e73a4b5f3254e52152b7eec8477ae269f116510ff3ba01317836
MD5 e135ebce05290320211d0b0f15e00ac6
BLAKE2b-256 d124aa6d511de3d27fc50a72eeb50f8863a3bb2577ff4a1b5cf9377e696d0d19

See more details on using hashes here.

File details

Details for the file grabr-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: grabr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for grabr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c11dc947a54e1c76257f25e44567f3f7bfe7a0ad224a8c46baf3a0bd43d43c7
MD5 7469a962961437be95f62b237dd20618
BLAKE2b-256 4692dde737b2b2a4f1bd387931118004d9b09f5064aa01acf0538f18474cc794

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page