An open API service indexing awesome lists of open source software.

https://github.com/lostdou/spotify-widget

Get the song you're listening on Spotify :D
https://github.com/lostdou/spotify-widget

Last synced: about 2 months ago
JSON representation

Get the song you're listening on Spotify :D

Awesome Lists containing this project

README

        

# Spotify Widget 🎶

Ejemplo hecho con los datos obtenidos / Example made with the data obtained

![image](https://github.com/user-attachments/assets/a4706ca1-fd7b-4444-bf80-8a25a8666cb2)

- Script made by: Lostdou
- Script hecho por: Lostdou

## 📚 Description/Descripción

### EN:
- Program that allows you to obtain information about the song you are currently listening to.
Like the title, the artist, the cover, total duration and what minute and second it is in.

### ES:
- Programa que permite conseguir información de la cancion que estas escuchando en el momento.
Como el titulo, el artista, la portada, duración total y en que minuto y segundo está.

## 📋 Features/Caracteristicas

### EN:
- Get your ```Spotify For Developers``` tokens and save them in the .env.
- Once that is done, run the program and log in to Spotify. From that moment on you can request what you are listening to using a ```GET``` method.
### ES:
- Consigue tus tokens de ```Spotify For Developers``` y guardarlos en el .env.
- Una vez hecho eso, ejecuta el programa e inicia sesion en spotify. A partir de ese momento podras requestar mediante un metodo ```GET``` lo que estes escuchando.

![image](https://github.com/user-attachments/assets/7e53be03-c560-46b1-a217-85af5b82b13d)

## ⚙️ Installation/Instalación
### EN:
In order to start this script, follow the steps below:

1- Clone the repository:
```bash
git clone https://github.com/Lostdou/Spotify-Widget.git
```

2- Install dependencies:
```bash
pip3 install python-dotenv
pip3 install flask flask_cors spotipy
```
3- Create a ".env" file in the same folder where you cloned the script and enter your app's tokens there

4- Now simply run the script and that's it
```bash
python -m main.py
```

### ES:
Para poder iniciar este script, sigue los pasos a continuación:

1- Clona el repositorio:
```bash
git clone https://github.com/Lostdou/Spotify-Widget.git
```

2- Instala dependencias:
```bash
pip3 install python-dotenv
pip3 install flask flask_cors spotipy
```
3- Crea un archivo ".env" en la misma carpeta donde clonaste el script e ingresa ahi los tokens de tu app

4- Ahora simplemente ejecuta el script y ya está
```bash
python -m main.py
```

## 🤖 Used Libraries/Librerias usadas

- os
- flask
- dotenv
- spotipy
- sys
- time
- threading

## ❓ Doubts/Dudas

### EN:
You can send me your questions about the script, how to make it work, etc. to my Discord: lostdou

### ES:
Puedes enviarme tus preguntas sobre el script, cómo hacerlo funcionar, etc. a mi Discord: lostdou