Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mporracindie/spotify-gist
🎧 Get your last weeks listening report from Spotify in a GitHub Gist.
https://github.com/mporracindie/spotify-gist
Last synced: about 1 month ago
JSON representation
🎧 Get your last weeks listening report from Spotify in a GitHub Gist.
- Host: GitHub
- URL: https://github.com/mporracindie/spotify-gist
- Owner: mporracindie
- License: mit
- Created: 2021-09-15T20:06:06.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-15T21:39:33.000Z (about 3 years ago)
- Last Synced: 2024-08-02T07:10:35.794Z (4 months ago)
- Language: Python
- Size: 112 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pinned-gists - spotify-gist - Update a pinned gist to contain your monthly top artist on Spotify. (External Services)
README
# spotify-gist
🎧 Get your last weeks listening report from Spotify in a GitHub Gist.
spotify-gist
Update a gist to contain your monthly plays on Spotify
---
> 📌✨ For more pinned-gist projects like this one, check out: https://github.com/matchai/awesome-pinned-gists## ✨ Inspiration
This code was heavily inspired by [@jacc music-box](https://github.com/jacc/music-box).## 🎒 Prep Work
1. Create a new public GitHub Gist (https://gist.github.com/)
2. Create a Spotify Application (https://developer.spotify.com/dashboard/)
- Add your own user to the app under `users and access`
- Add `http://localhost` as valoid Redirect URIs under `edit settings`
3. Copy the `Client ID` and `Client Secret`
4. Create a github personal access token [here](https://github.com/settings/tokens) with gist permissions## 🖥 Project Setup
1. Download this repo (or just copy the contents of [this file](https://github.com/mporracindie/spotify-gist/blob/main/gist_spotify.py)
2. Run `pip install spotipy, PyGithub`
3. Export all the needed env variables and run the file## 🤫 Environment Secrets
- **GIST_ID:** The ID portion from your gist url `https://gist.github.com//`**`6d5f84419863089a167387da62dd7081`**.
- **GITHUB_ACCESS_TOKEN:** The GitHub token generated above.
- **SPOTIPY_CLIENT_ID:** The client id you got while creating the Spotify app.
- **SPOTIPY_CLIENT_SECRET:** The client secret you got while creating the Spotify app.