It looks like http://last.fm has an XML/RSS feed that I can use (along with some HTML they provide that links to a .gif image with a list of recently played tracks. Doesn't update too fast though it looks like...) to show the most recent tracks...perhaps i could use XML::Twig for this...
The XML is a LOT simpler for this site:
<recenttracks user="dhoss">
−
<track>
<artist mbid="777a21a8-0d0f-4cf3-86b4-65bc0eba5649">Staind</artist>
<name>Everything Changes</name>
<mbid/>
−
<url>
http://www.last.fm/music/Staind/_/Everything+Changes
</url>
<date uts="1163436933">13 Nov 2006, 16:55</date>
</track>
−
<track>
<artist mbid="">The Smashing Pumpkins</artist>
<name>1979</name>
<mbid/>
−
<url>
http://www.last.fm/music/The+Smashing+Pumpkins/_/1979
</url>
<date uts="1163436668">13 Nov 2006, 16:51</date>
</track>
−
<track>
<artist mbid="">Yellowcard</artist>
<name>Gifts and Curses</name>
<mbid/>
−
<url>
http://www.last.fm/music/Yellowcard/_/Gifts+and+Curses
</url>
<date uts="1163436360">13 Nov 2006, 16:46</date>
</track>
−
<track>
<artist mbid="">Rascal Flatts</artist>
<name>What Hurts The Most</name>
<mbid/>
−
<url>
http://www.last.fm/music/Rascal+Flatts/_/What+Hurts+The+Most
</url>
<date uts="1163435904">13 Nov 2006, 16:38</date>
</track>
</recenttracks>
Or, I could even parse the even simpler CSV file:
1163436933,Staind – Everything Changes
1163436668,The Smashing Pumpkins – 1979
1163436360,Yellowcard – Gifts and Curses
1163435904,Rascal Flatts – What Hurts The Most
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|