
WWW::Freshmeat - automates searches on Freshmeat.net

Version 0.12

use WWW::Freshmeat;
my $fm = WWW::Freshmeat->new;
my $project = $fm->retrieve_project('project_id');
foreach my $p ( @projects, $project ) {
print $p->name(), "\n";
print $p->url(), "\n";
print $p->version(), "\n";
print $p->description(), "\n";
}

WWW::Freshmeat derives from LWP::UserAgent, so it accepts all the methods that LWP::UserAgent does, notably timeout, useragent, env_proxy...
Query the freshmeat.net site for the project STRING (should be the Freshmeat ID of the requested project) and returns a WWW::Freshmeat::Project object or undef if the project entry cannot be found.
Receives Freshmeat project XML record and returns a WWW::Freshmeat::Project object or undef if the project entry cannot be found.
Receives URL and returns URL which it redirects to.
The WWW::Freshmeat::Project object provides some of the fields from the freshmeat.net entry through the following methods
Additionally, it provides the following "higher-level" methods:
Return either projectname_full (respectively desc_full) or projectname_short (respectively desc_short) if the former is empty.
Returns the version of the latest release.
url_homepage returns a freshmeat.net URL that redirects to the actual project's home page. This url() method tries to follow the redirection and returns the actual homepage URL if it can be found, or the URL to the freshmeat.net entry for the project.
List of branches for project. Returns hash in form of (branch id => branch name).
Freshmeat popularity data for project. Returns hash with keys record_hits, url_hits, subscribers
Returns list of URLs for project. You may need to use redir_url to get real link or just pass 1 as argument.
Returns name of author (not maintainer).


Cedric Bouvier, <cbouvi at cpan.org>

This is very alpha code. It does not even support searching!
Please report any bugs or feature requests to bug-www-freshmeat at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Freshmeat. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc WWW::Freshmeat
You can also look for information at:


Copyright 2006 Cedric Bouvier. Copyright 2009 Alexandr Ciornii.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.