LastFM::Export - data exporter for last.fm
version 0.02
use LastFM::Export; my $exporter = LastFM::Export->new(user => 'doyster'); my $stream = $exporter->tracks; while (my $block = $stream->next) { for my $track (@$block) { # ... } sleep 1; }
This module uses the http://last.fm/ API to allow you to export your scrobbling data from your account. Currently, the only thing this lets you export is your actual scrobble data, but more features may be added in the future (especially if the feature requests come with patches!).
last.fm user to export data for. Required.
Returns the number of tracks the user has scrobbled.
%params can contain from and to keys, as documented here.
%params
from
to
Returns a Data::Stream::Bulk object, which will stream the entire list of tracks that the user has scrobbled. Note that calling all on this object is not recommended, since you will likely hit the last.fm API's rate limit. Each call to next on this stream will require a separate API call.
all
next
%params can contain page, limit, from, and to keys, as documented here. page will default to 1 and limit will default to 200 if not specified.
page
limit
1
200
Returns
No known bugs.
Please report any bugs through RT: email bug-lastfm-export at rt.cpan.org, or browse to http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LastFM-Export.
bug-lastfm-export at rt.cpan.org
Net::LastFM
http://last.fm/
You can find this documentation for this module with the perldoc command.
perldoc LastFM::Export
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/LastFM-Export
CPAN Ratings
http://cpanratings.perl.org/d/LastFM-Export
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=LastFM-Export
Search CPAN
http://search.cpan.org/dist/LastFM-Export
Jesse Luehrs <doy at tozt dot net>
This software is copyright (c) 2012 by Jesse Luehrs.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install LastFM::Export, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LastFM::Export
CPAN shell
perl -MCPAN -e shell install LastFM::Export
For more information on module installation, please visit the detailed CPAN module installation guide.