Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Getting a List of Modules from the CPAN without your Browser?

by ghenry (Vicar)
on Aug 30, 2006 at 20:34 UTC ( #570474=perlquestion: print w/ replies, xml ) Need Help??
ghenry has asked for the wisdom of the Perl Monks concerning the following question:

UPDATE: Trying CPAN::Search::Lite::Info, looks good

Dear All,

It's been a while, so forgive me for not contributing lately, but has anyone got any tips on getting info from search.cpan.org without using your browser?

I am trying to get a list of all the Catalyst Plugins.

The problem is, if I mess with 03modlist.data.gz only registered namespace is listed and most them aren't.

Thanks,
Gavin.

Walking the road to enlightenment... I found a penguin and a camel on the way.....
Fancy a yourname@perl.me.uk? Just ask!!!

Comment on Getting a List of Modules from the CPAN without your Browser?
Replies are listed 'Best First'.
Re: Getting a List of Modules from the CPAN without your Browser?
by jhourcle (Prior) on Aug 30, 2006 at 20:48 UTC

    Does the CPAN shell count as a brower?

    cpan> i /Catalyst/

      Yes! ;-)

      But i /Catalyst::Plugin/ is just about there, but I want to code something up and pull out parts of that.

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!
Re: Getting a List of Modules from the CPAN without your Browser?
by randyk (Parson) on Aug 31, 2006 at 05:15 UTC

    You mentioned in the update about CPAN-Search-Lite - there's a script in that distribution: csl_soap, which can be used to get information on CPAN modules, distributions, and authors from a remote SOAP server (it just requires SOAP-Lite and Getopt-Long, not the full CPAN-Search-Lite package). To see it work, near the top of the script, set

    my $soap_uri = 'http://theoryx5.uwinnipeg.ca/CPAN_Search_CGI'; my $soap_proxy = 'http://theoryx5.uwinnipeg.ca/cgi-bin/soap.cgi';
    and then you can use it as
    C:\Perl\bin>csl_soap --dist Catalyst-Plugin-Pluggable Distribution: Catalyst-Plugin-Pluggable Abstract: Plugin for Pluggable Catalyst applications Version: 0.04 CPAN author: SRI CPAN file: Catalyst-Plugin-Pluggable-0.04.tar.gz Size: 3.0 KB bytes Last modified: 28 Nov 2005
    This doesn't do wildcard searches - it's just there as a proof-of-concept - but could readily be adapted to do so if there was interest.

Re: Getting a List of Modules from the CPAN without your Browser?
by grep (Monsignor) on Aug 30, 2006 at 20:50 UTC
    perl -MCPAN -e shell
    will get you into the CPAN (module) shell.

    Then
    i /Catalyst/
    but also check out The Catalyst page on Plugins



    grep
    Mynd you, mønk bites Kan be pretti nasti...

      Heh.

      I wrote a big chunk of that ;-)

      I document what's good and not good (deprecated) on that list and it's due for an update, but I am not using my browser again! ;-)

      Walking the road to enlightenment... I found a penguin and a camel on the way.....
      Fancy a yourname@perl.me.uk? Just ask!!!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://570474]
Approved by philcrow
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2015-07-07 23:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls