comparison core/magnatagatune/fm_network.py @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 import pylast
2 import sys
3
4 def get_network():
5 # You have to have your own unique two values for API_KEY and API_SECRET
6 # Obtain yours from http://www.last.fm/api/account for Last.fm
7 API_KEY = "6fae93d29ad1ace84159d5e264114be7"
8 API_SECRET = "e04dd6c372461fb2de4eb4908fb35ae3"
9
10 # In order to perform a write operation you need to authenticate yourself
11 # username = "megaoetzwuchst"
12 # password_hash = "5c15b1b51d73b8a623fef29ca5035abb"
13
14 network = pylast.LastFMNetwork(api_key = API_KEY, api_secret =
15 API_SECRET)
16
17 # network = pylast.LastFMNetwork(api_key = API_KEY, api_secret =
18 # API_SECRET, username = username, password_hash = password_hash)
19
20 return network