-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
18 lines (10 loc) · 705 Bytes
/
main.py
File metadata and controls
18 lines (10 loc) · 705 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from spotify_requests import SpotifyRequests
from json_manager import JsonManager
ploads_json, tokens_json, playlists_json, user_info_json = 'jsons/ploads.json', 'jsons/tokens.json', 'jsons/users_playlists.json', 'jsons/user_info.json'
SpotifyRequests.get_token(ploads_json, tokens_json)
# for i in range(50):
# SpotifyRequests.create_a_playlist(ploads_json, user_info_json, playlists_json, f"Test Playlist {i + 1}")
# for i in range(50):
# SpotifyRequests.unfollow_user_playlist(ploads_json, playlists_json, f"Test Playlist {i + 1}")
# SpotifyRequests.unfollow_user_playlist(ploads_json, playlists_json, "Test Playlist 1")
SpotifyRequests.print_user_playlists(ploads_json, playlists_json)