Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Flowm/spotify-api-bash
Some scripts to quickly communicate with the spotify web api
https://github.com/Flowm/spotify-api-bash
artists festival playlist spotify-api
Last synced: 29 days ago
JSON representation
Some scripts to quickly communicate with the spotify web api
- Host: GitHub
- URL: https://github.com/Flowm/spotify-api-bash
- Owner: Flowm
- Created: 2016-04-21T20:51:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-28T23:02:45.000Z (over 7 years ago)
- Last Synced: 2024-08-05T06:06:36.858Z (5 months ago)
- Topics: artists, festival, playlist, spotify-api
- Language: Shell
- Size: 2.93 KB
- Stars: 13
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spotify API bash utils
Some small scripts to quickly communicate with the spotify web api## create_playlist_from_artists.sh
Creates a spotify playlist from the top tracks of a list of artists.Useful for easily creating festival playlists with the top 10 tracks of each artist by pasting the list of artists to a file and invoking the script.
### Usage
* Obtain Auth token
```
Open this URL to obtain the auth token:
https://accounts.spotify.com/authorize?client_id=109e36592e9c471bb5bb15a83a4a78de&response_type=token&redirect_uri=http%3A%2F%2Flocalhost%3A9876&scope=playlist-modify-privateObtain the access_token from the redirected URI. Example URI:
http://localhost:9876/#access_token=XXYOURTOKENHEREXX&token_type=Bearer&expires_in=3600
```* Invoke the script with a file containing a list of artists separated by newlines
```
./create_playlist_from_artists.sh
```## Requirements
* [jq](https://github.com/stedolan/jq) - For json parsing
* [curl](https://curl.haxx.se/) - For web requests