Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: mp3.com stats
by lhoward (Vicar) on Jul 02, 2000 at 05:01 UTC | |
The LWP modules have built-in support basic authentication. However, if the mp3.com login works through cookies, it may get tricky. | [reply] |
by tenatious (Beadle) on Jul 02, 2000 at 07:39 UTC | |
| [reply] |
|
Re: mp3.com stats
by maverick (Curate) on Jul 04, 2000 at 03:01 UTC | |
Enjoy /\/\averick | [reply] [d/l] |
|
(jeffa) Re: mp3.com stats
by jeffa (Bishop) on Jul 02, 2000 at 20:20 UTC | |
Now, back to the issue at hand - mp3's artist log-in URL is https://login.mp3.com/login?origin=artist. I wrote the following piece of test code to see if I could simply dump the contents: And I get this as a result (abbreviated): 501 Protocol scheme 'https' is not supported. Wow. If you replace https with plain old http a 302 error is returned. If anyone can give a suggestion/alternate route, I would greatly appreciate it. In the meantime I will continue to work on this admin page display thingy. I take it that you are wanting to get a list of songs from the Artist Admin Page, feed each one via a GET or POST request to their CGI engine, and print the stats. Great idea, because it is a timely process to do so via a web browser.
<SHAMELESS PLUG> | [reply] [d/l] [select] |
by mdillon (Priest) on Jul 02, 2000 at 20:29 UTC | |
i just installed that module and verified that i can GET the URL you are interested in. also, there is a HTTP::Cookies::Netscape package as part of HTTP::Cookies that allows you to manipulate the Navigator cookie file without reinventing the wheel. you can use it like so:
| [reply] [d/l] |
|
(jeffa) Re: mp3.com stats
by jeffa (Bishop) on Jul 04, 2000 at 08:02 UTC | |
Here it is. If you want to use it as a CGI file, just put it in your cgi-bin directory of choice. If you don't have CGI access, use it like so: ./mp3admin-display.cgi > out.html and load out.html in your browser. This has been fun. ;) UPDATE - mp3.com regularly changes their submit variable names, so, good chance that this code is broken but easily fixed. Not to mention that i wrote this over a year ago without any HTML parsers ... Please inform me of any problems. Now all you monks out there with mp3 Artist accounts rush to use this. Hmm, do I hear crickets chirpin'? | [reply] [d/l] |
|
Re: mp3.com stats
by locked_user POASquall (Initiate) on Jul 04, 2000 at 18:58 UTC | |
Oh, and now I can see how I didn't make any mp3c money because I suck. Heh. -Jon/POASquall // mp3.com/PhysicsOfASquall | |