Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from gmusicapi import Mobileclient
- import csv
- from collections import Counter
- api = Mobileclient()
- api.login('sasnfbi1234@gmail.com', 'Ryt5:ymal', Mobileclient.FROM_MAC_ADDRESS)
- # => True
- library = api.get_all_songs()
- word_count = Counter()
- for track in library:
- my_dict = track.get('genre', '1')
- print(word_count)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement