CPAN ratings and reviews

0 views
Skip to first unread message

J. Bobby Lopez

unread,
Apr 9, 2011, 10:54:47 AM4/9/11
to cpan...@googlegroups.com
I've committed changes to the cpanratings.pl script.  It's pretty much ready to pump all ratings and reviews into MetaCPAN.

I had some trouble with the MetaCPAN module (there doesn't seem to be a MetaCPAN.pm in the lib/ directory):

jbl@cpan-api:~/repos/cpan-api/cpan-api/lib$ pwd
/home/jbl/repos/cpan-api/cpan-api/lib
jbl@cpan-api:~/repos/cpan-api/cpan-api/lib$ ls
ElasticSearchX MetaCPAN


That's what index_cpanratings.pl was referring to, so not sure what's going on there.  Once I figure that out, we're golden.

Out of 2614 modules identified in "all_ratings.csv", about 2429 of them provided useful information (ratings/reviews).  The other ~185 identified in that file had no actual ratings or review page on cpanratings.perl.org (they returned 404 errors).

Just give me some insight into using the MetaCPAN module, and I'll dump the data into ES.

-Bobby

Moritz Onken

unread,
Apr 9, 2011, 11:23:17 AM4/9/11
to cpan...@googlegroups.com
Hi Bobby,

all former scripts in the elasticsearch/ directory have been transformed to modules in the MetaCPAN::Script:: namespace. During that transition MetaCPAN.pm became obsolete. Have a look at one of the modules in the Script namespace.

You can simply run a module on the Script namespace by running bin/metacpan scriptname (which would load an run MetaCPAN::Script::Scriptname).

Cheers,

moritz

Olaf Alders

unread,
Apr 11, 2011, 12:27:20 PM4/11/11
to cpan...@googlegroups.com

On 2011-04-09, at 11:23 AM, Moritz Onken wrote:

> Hi Bobby,
>
> all former scripts in the elasticsearch/ directory have been transformed to modules in the MetaCPAN::Script:: namespace. During that transition MetaCPAN.pm became obsolete. Have a look at one of the modules in the Script namespace.
>
> You can simply run a module on the Script namespace by running bin/metacpan scriptname (which would load an run MetaCPAN::Script::Scriptname).

Having said that, there's now a link in the README to a "getting started" page in the Wiki, which you can use to install the latest version of MetaCPAN. Still needs some details, but it's getting there. I should note that you can install the latest version with just a minicpan on your end. No need to download the whole thing.

Olaf

Reply all
Reply to author
Forward
0 new messages