mu5ic-sugg3st

Introduction

“Python script to get notified of a random music to listen to, on Discord, using Spotify API and Discord Webhook.”

Getting Started

Step 1: Set up a Discord Webhook

Step 2: Set Up Spotify API Access

curl -X POST "https://accounts.spotify.com/api/token" \
     -H "Content-Type: application/x-www-form-urlencoded" \
     -d "grant_type=client_credentials&client_id=your-client-id&client_secret=your-client-secret"

Step 3: Preparing the Python Script

pip install requests

genre

Running locally/cloud

crontab -e
0 */8 * * * /usr/bin/python /home/samsep10l/Desktop/song-notifier.py

python

notify