https://github.com/mrnkr/fresh-on-repeat
Generate a Spotify playlist with the last songs you liked
https://github.com/mrnkr/fresh-on-repeat
Last synced: over 1 year ago
JSON representation
Generate a Spotify playlist with the last songs you liked
- Host: GitHub
- URL: https://github.com/mrnkr/fresh-on-repeat
- Owner: mrnkr
- License: mit
- Created: 2022-05-10T18:54:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T19:01:28.000Z (about 4 years ago)
- Last Synced: 2025-01-24T04:43:34.316Z (over 1 year ago)
- Language: TypeScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Fresh On Repeat
Easily have this CLI create a playlist with the last songs you liked on Spotify, ideal if you're going on a plane ride and you need to download them real quick.
## How to use
1. Get an access token with the following permissions:
* user-read-private
* user-read-email
* playlist-read-private
* playlist-modify-private
* user-library-read
### Tip
Clone the [`web-api-auth-examples`](https://github.com/spotify/web-api-auth-examples) repository and use the `authorization_code` project to get the access token. Change the requested permissions in line 49 of `app.js`.
2. Setup a `.env` file
```
ACCESS_TOKEN=
SONG_COUNT=50
```
`SONG_COUNT` is the number of songs that will be included in the playlist. Given the way this is coded and the way the Spotify API is made this number has to be <= 50.
3. Install dependencies and run the script
```
yarn
yarn start
```