added backup function

This commit is contained in:
aj 2019-02-28 07:49:52 +00:00
parent a250c84b67
commit 447f68a893
2 changed files with 13 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
env
__pycache__
*.csv

12
backup.py Normal file
View 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'])