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

https://github.com/oakhan3/spotify-e-toggle

Toggle your Spotify saved tracks, or any of your playlists, to be explicit or censored!
https://github.com/oakhan3/spotify-e-toggle

python python3 spotify spotify-api spotify-playlist

Last synced: 3 months ago
JSON representation

Toggle your Spotify saved tracks, or any of your playlists, to be explicit or censored!

Awesome Lists containing this project

README

        

# Spotify E-Toggle

Toggle your Spotify saved tracks, or any of your playlists, to be explicit or censored!

## Instructions

1. Set the following environment variables:

```shell
$ export SPOTIFY_USERNAME="

DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.spotify.com:443
DEBUG:urllib3.connectionpool:https://api.spotify.com:443 "GET /v1/me/playlists?limit=50&offset=0 HTTP/1.1" 200 None
INFO:spotify_e_toggle.spotify_client:Successfully retrieved items at offset 50, with limit 0
DEBUG:urllib3.connectionpool:https://api.spotify.com:443 "GET /v1/me/playlists?limit=50&offset=50 HTTP/1.1" 200 None
INFO:spotify_e_toggle.spotify_client:Successfully retrieved items at offset 50, with limit 50

+------------------------+----------------------------+------------+-----------------+----------+
| ID | Name | Owner | Collaborative | Public |
|------------------------+----------------------------+------------+-----------------+----------|
| your-saved-tracks | Your Saved Tracks | oakhan3 | False | False |
| dfsjhsd_fake_dhfddjkjd | Soccer Fever | 731fake233 | True | False |
| 2sjdhkd_fake_ljsdhbdsk | STUMBLR | oakhan3 | False | True |
| fdskjhd_fake_skghjfjkd | Life After – Ace Hood | oakhan3 | False | True |
| fdskjhf_fake_ksjdfskjd | DaBump | oakhan3 | False | True |
| sdfjhjk_fake_shkjfdjsh | Discover Weekly Archive | oakhan3 | False | False |
| dfshjsf_fake_sfksdfhjj | Poor Kid Rich Soul | oakhan3 | False | True |
| dsfkjhs_fake_fjjdsjdfd | Summer 2015 | oakhan3 | False | True |
| dsfhfsd_fake_fshjkdfsh | Liked from Radio | oakhan3 | False | False |
| dfsjhdf_fake_jkhjdshfh | My Shazam Tracks | oakhan3 | False | True |
| dsjfhfj_fake_sfhjfkdsj | Starred | oakhan3 | False | False |
+------------------------+----------------------------+------------+-----------------+----------+

What Playlist ID should be toggled:
```

### Run from Source

1. Clone/download this repo.

1. pip install this package in a Python 3.6.1+ env:

```shell
$ pwd
.../spotify-e-toggle

$ pip install .

# or if you want to contribute!
$ poetry shell
(spotify-e-toggle-yYRcJtfH-py3.x) $ poetry install
```

1. Execute the script in the env:

```shell
$ ./bin/toggle-explicit.py
```