Here's some code to get you connected and snag the first song page jeffa is going to go back and pretty this up to display all songs and their stats this will just get you connected up :) You have to have Crypt::SSLeay, OpenSSL and libwww installed for this to work.
#!/usr/bin/perl -w use strict; use LWP::UserAgent; use HTTP::Request::Common; use HTTP::Cookies; # info to pick which page my $email = ''; # SET THIS TO YOUR EMAIL my $password = ''; # SET THIS TO YOUR PASSWORD my $band_id = ''; # SET THIS TO YOUR BAND ID (it's in the url after +you login in after 'band_id' # make a new agent my $agent = new LWP::UserAgent; # make a new cookie jar my $cookie_jar = HTTP::Cookies->new; # build the request for the login web page (so we get the set of cooki +es my $req = POST ('https://login.mp3.com/login', [ cmd => 'login', dest => 'http://studio.mp3.com/cgi-bin/artist-admin/login. +cgi?step=Intro', tmpl => 'login_artist.html', email => $email, password => $password, ]); # issue the request my $res = $agent->request($req); # extract the cookies $cookie_jar->extract_cookies($res); # build the request for the stats page my $req2 = GET ("http://stats.mp3.com/cgi-bin/artist-stats.cgi?band_id +=$band_id"); # add the cookies we got from the previous request $cookie_jar->add_cookie_header($req2); # issue the request $res = $agent->request($req2); if ($res->is_success) { print "Content-type: text/html\n\n"; print "<html>"; print $res->content; } else { print $res->as_string; }
Enjoy
/\/\averick

In reply to Re: mp3.com stats by maverick
in thread mp3.com stats by Anonymous Monk

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.