WWW::Wikipedia::Links - Extract links from Wikipedia pages
Version 0.01
Quick summary of what the module does.
Perhaps a little code snippet.
use WWW::Wikipedia::Links qw/wiki_links/; my $links = wiki_links 'http://de.wikipedia.org/wiki/Ralf_Isau'; if ($links) { for (@{ $links->{translations} }) { print $_->{lang}, ' ', $_->{url}, "\n"; } }
Function wiki_links is be exported if requested.
wiki_links
my $res = wiki_links $wiki_url;
Returns a hash ref of the following structure. Any fields may be missinf if the information could not be extracted.
my $res = { license => $link_to_license_page, official_website => $official_website, translations => [ { lang => $wiki_language_code, url => $translation_url, title => $title_of_translation_page, }, ... ], };
The behavior in the case of an error is not yet defined.
Moritz Lenz, <moritz at faui2k3.org>
<moritz at faui2k3.org>
Please report any bugs or feature requests at https://github.com/moritz/WWW-Wikipedia-Links/issues
Development happens at github, you can seen (and modify) the latest source code at https://github.com/moritz/WWW-Wikipedia-Links.
You can find documentation for this module with the perldoc command.
perldoc WWW::Wikipedia::Links
You can also look for information at:
Bug tracker (report bugs here)
https://github.com/moritz/WWW-Wikipedia-Links/issues
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/WWW-Wikipedia-Links
CPAN Ratings
http://cpanratings.perl.org/d/WWW-Wikipedia-Links
Search CPAN
http://search.cpan.org/dist/WWW-Wikipedia-Links/
Copyright 2011 Moritz Lenz.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install WWW::Wikipedia::Links, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Wikipedia::Links
CPAN shell
perl -MCPAN -e shell install WWW::Wikipedia::Links
For more information on module installation, please visit the detailed CPAN module installation guide.