Take me over?
NAME
WWW::Wikipedia::Links - Extract links from Wikipedia pages
VERSION
Version 0.01
SYNOPSIS
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";
}
}
EXPORT
Function wiki_links
is be exported if requested.
SUBROUTINES
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.
AUTHOR
Moritz Lenz, <moritz at faui2k3.org>
BUGS AND DEVELOPMENT
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.
SUPPORT
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)
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
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.