added backup function
This commit is contained in:
parent
a250c84b67
commit
447f68a893
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
env
|
||||
__pycache__
|
||||
*.csv
|
||||
|
12
backup.py
Normal file
12
backup.py
Normal file
@ -0,0 +1,12 @@
|
||||
import spotframework.net.user as userclass
|
||||
import spotframework.net.playlist as playlist
|
||||
import spotframework.io.csv as csvwrite
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
user = userclass.User()
|
||||
|
||||
playlists = playlist.getPlaylists(user)
|
||||
|
||||
for play in playlists:
|
||||
csvwrite.exportPlaylist(user, play['id'], play['name'])
|
Loading…
Reference in New Issue
Block a user