Created
December 20, 2010 21:05
-
-
Save pagenoare/748983 to your computer and use it in GitHub Desktop.
now-playing in py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import feedparser | |
user = 'pagenoare' | |
d = feedparser.parse('http://ws.audioscrobbler.com/1.0/user/%s/recenttracks.rss' % user) | |
title = d.entries[0].title.encode('utf-8') | |
print title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lolipop $ python np.py | |
Led Zeppelin – The Battle of Evermore |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment