Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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"> &#8722; <track> <artist mbid="777a21a8-0d0f-4cf3-86b4-65bc0eba5649">Staind</artist> <name>Everything Changes</name> <mbid/> &#8722; <url> http://www.last.fm/music/Staind/_/Everything+Changes </url> <date uts="1163436933">13 Nov 2006, 16:55</date> </track> &#8722; <track> <artist mbid="">The Smashing Pumpkins</artist> <name>1979</name> <mbid/> &#8722; <url> http://www.last.fm/music/The+Smashing+Pumpkins/_/1979 </url> <date uts="1163436668">13 Nov 2006, 16:51</date> </track> &#8722; <track> <artist mbid="">Yellowcard</artist> <name>Gifts and Curses</name> <mbid/> &#8722; <url> http://www.last.fm/music/Yellowcard/_/Gifts+and+Curses </url> <date uts="1163436360">13 Nov 2006, 16:46</date> </track> &#8722; <track> <artist mbid="">Rascal Flatts</artist> <name>What Hurts The Most</name> <mbid/> &#8722; <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

meh.

In reply to Re^2: iTunes lacking on CPAN... by stonecolddevin
in thread iTunes lacking on CPAN... by stonecolddevin

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-19 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found