Advertisement
Guest User

Untitled

a guest
May 31st, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. from gmusicapi import Mobileclient
  2. import csv
  3. from collections import Counter
  4.  
  5. api = Mobileclient()
  6. api.login('sasnfbi1234@gmail.com', 'Ryt5:ymal', Mobileclient.FROM_MAC_ADDRESS)
  7. # => True
  8.  
  9. library = api.get_all_songs()
  10. word_count = Counter()
  11. for track in library:
  12. my_dict = track.get('genre', '1')
  13.  
  14.  
  15. print(word_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement