Dear folks,

I have never cottoned on to command line browsing or even text mode
browsing with lynx.

I only use dict which is a command line app to look up meanings of
English words and even tech terms.

However here is a way to do a command line dump of Wikipedia pages.

First install WWW::Wikipedia perl module. How you do it is your
choice. One possibility is this:

# cpan WWW::Wikipedia

or

# perl -MCPAN -e 'install WWW::Wikipedia;'

Once you do that just run this:

--------------begin script----------
  use WWW::Wikipedia;
        $text = shift;
         my $wiki = WWW::Wikipedia->new();
           my $entry = $wiki->search( $text );
           print $entry->fulltext();

-----------end script---------------

Run it like this:


$ perl w.pl india

to find out about India.

In fact my favorite topic Hindu philosophy is brilliantly dealt with
in wikipedia.

-Girish

-- 
Gayatri Hitech

http://gayatri-hitech.com
[email protected]
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to