From eff3f882f64608120a29a15c3e3f3e48547017ef Mon Sep 17 00:00:00 2001 From: Hugo Date: Sat, 4 Feb 2017 11:15:06 +0200 Subject: [PATCH] pep8 example code [CI skip] --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d5361fa..d20a717 100644 --- a/README.md +++ b/README.md @@ -44,15 +44,15 @@ import pylast # You have to have your own unique two values for API_KEY and API_SECRET # Obtain yours from http://www.last.fm/api/account/create for Last.fm -API_KEY = "b25b959554ed76058ac220b7b2e0a026" # this is a sample key +API_KEY = "b25b959554ed76058ac220b7b2e0a026" # this is a sample key API_SECRET = "425b55975eed76058ac220b7b4e8a054" # In order to perform a write operation you need to authenticate yourself username = "your_user_name" password_hash = pylast.md5("your_password") -network = pylast.LastFMNetwork(api_key = API_KEY, api_secret = - API_SECRET, username = username, password_hash = password_hash) +network = pylast.LastFMNetwork(api_key=API_KEY, api_secret=API_SECRET, + username=username, password_hash=password_hash) # Now you can use that object everywhere artist = network.get_artist("System of a Down") @@ -63,8 +63,8 @@ track = network.get_track("Iron Maiden", "The Nomad") track.love() track.add_tags(("awesome", "favorite")) -# Type help(pylast.LastFMNetwork) or help(pylast) in a Python interpreter to get more help -# about anything and see examples of how it works +# Type help(pylast.LastFMNetwork) or help(pylast) in a Python interpreter +# to get more help about anything and see examples of how it works ``` More examples in hugovk/lastfm-tools and [test_pylast.py](test_pylast.py).