spotframework/main.py

21 lines
451 B
Python
Raw Normal View History

import spotframework.net.user as userclass
import spotframework.net.playlist as playlist
2019-02-27 21:42:21 +00:00
if __name__ == '__main__':
print('hello world')
user = userclass.User()
2019-02-27 21:42:21 +00:00
playlists = playlist.getPlaylists(user)
2019-02-27 23:05:44 +00:00
#for playlister in playlists:
#print(playlister['name'])
2019-02-27 23:05:44 +00:00
print(playlists[0])
#print(len(playlists))
print(user.username)
moreplaylists = playlist.getUserPlaylists(user)
print(len(moreplaylists))