WWW::Bleep - Perl interface to Bleep.com
Version 0.92
use WWW::Bleep;
my $bleep = WWW::Bleep->new();
my @tracks = WWW::Bleep->tracks( artist => 'Aphex Twin' );
A Perl interface to Bleep.com. Specfically for searching artist, album, and label data. Current purpose is the help with cataloging your personal (physical) album collection.
This has no shopping cart capability and it isn't planned. (Less there is some dire need for it.)
Create a new WWW::Bleep object. Currently has no arguments.
Returns an error description or ''. Doesn't take or require any arguments. For the sake of your own sanity, check this ne '' after every call. The most you'd generally get from other routines as far as errors are concerned would be a null response.
Gathers album data based on the arguments given. Requires one of the following arguments: cat (eventually title) Returns a hash containing relevant album and track data. Specifically artist, date, label, title, and tracks. artist, date, label, and title are all scalars. date may always be returned. tracks contains the following array track_number => { 'time' => length_in_standard_time, 'title' => track_title, 'valid' => 1_=_downloadable__0_=_not } next_track_number => { 'time' => length_in_standard_time, 'title' => track_title, 'valid' => 1_=_downloadable__0_=_not } ...
Returns an array of artists from Bleep.com. An optional argument must be a valid record label name. # Returns all artists (Be careful with this one, # the list is very large!) @artists = $bleep->artists(); # Returns only artists on Warp @artists = $bleep->artists( 'Warp' ); # Returns null (not a valid record label) @artists = $bleep->artists( 'foo1234' ); Due to the size of the artist list, it may take a minute to populate.
Gathers the tracks based on the arguments given. Requires one or of the following arguments: artist label album* Returns an array of hashes of track names, track numbers and album catalog numbers. *Currently, 'album' dies off, as it uses a different method that hasn't been configured.
http://www.bleep.com
Clif Bratcher, <snevine@cpan.org>
Copyright (C) 2006 - 2009 by Clif Bratcher
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
To install WWW::Bleep, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Bleep
CPAN shell
perl -MCPAN -e shell install WWW::Bleep
For more information on module installation, please visit the detailed CPAN module installation guide.