Weiterleiten

lfm COL - last.fm Data Collector (for Windows, Linux and OS X)

26. Aug. 2009, 14:34

"lfmCOL.pl" is a small but powerful Perl program. It is a generic last.fm data collector client for Windows, Linux and OS X. It collects some user specific data and stores them into a XML file. The file can than be loaded into any program that supports xml import. For example: You can import the data into Excel or a XML database and use advanced features like: searching, sorting, filtering, stats, ...

Supported last.fm methods:
- artist.getImages
- artist.getShouts
- group.getMembers
- library.getAlbums
- library.getArtists
- library.getTracks
- user.getFriends
- user.getLovedTracks
- user.getPastEvents
- user.getRecentStations
- user.getRecentTracks (new)
- user.getRecommendedArtists

Usage:
lfmCOL.pl [-maxpages=N] -xmlfile="Name" [-logging=0|1] method="name" [param1="value"] ... [paramN="value"]

Examples:
lfmCOL.pl -xmlfile=myRecentTracks.xml method=user.getRecentTracks limit=50 user=toc-rox
lfmCOL.pl -xmlfile=myLovedTracks.xml method=user.getLovedTracks user=toc-rox
lfmCOL.pl -xmlfile=ArethaImages.xml method=artist.getImages artist="Aretha Franklin"
lfmCOL.pl -xmlfile=Albums_maz35.xml method=library.getAlbums user=maz35
lfmCOL.pl -xmlfile=Artists_maz35.xml method=library.getArtists user=maz35
lfmCOL.pl -xmlfile=Tracks_maz35.xml method=library.getTracks user=maz35
lfmCOL.pl -xmlfile="Members_Webservices.xml" method=group.getMembers group="Last.fm Web Services"

lfmCOL.pl -maxpages=20 -xmlfile=Last1000Tracks.xml method=user.getRecentTracks limit=50 user=VickyBN1
lfmCOL.pl -maxpages=10 -xmlfile=Tracks_maz35.xml method=library.getTracks user=maz35
lfmCOL.pl -maxpages=10 -xmlfile=Tracks_maz35.xml method=library.getTracks user=maz35 page=22

-h | -? = show help (this)
-maxpages = maximum number of pages to be fetched (default=-1 [no limit])
-xmlfile = (to) xml data file
-logging = 0=OFF / 1=ON; logfile="lfmCOL.log"

Link:
You will find the utility here: lfmCOL-20091107.zip

General information:
- You need a Perl interpreter to run the Perl file (lfmCOL.pl).
- Link to free ActivePerl: http://www.activestate.com/activeperl/
- You typically use the utilities from a command window (prompt).
- Under Windows: Start, Programs, Accessories, Command prompt.
- Under Linux / OS X: Start a terminal (console).
- Recommended terminal size setting is 132 x 43.
- Help informations: Start the utility without any parameters.

Technical notes:
- The utility comes with configuration file (lfmCOL.cfg).
- You typically configure your "terminal encoding" and "proxy setting".
- "lfmCOL" has full unicode (utf8) support. Your language specific characters are only displayed correct, if you configure the terminal encoding according to your codepage setting.
- For Windows: eg. "cp850" / use "mode con" to find out your codepage setting.
- For Linux: eg. "utf8" / have a look at your terminal configuration.
- Proxy support and configuration is possible.
- HTTP timeout configuration ist possible.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Your feedback is welcome - help to improve and enhance this documentation - thanks - Klaus

Poor english? - please send me your corrections - thanks.

Site last modified: 2009-11-16

Kommentare