Skip Menu |

This queue is for tickets about the WWW-Wikipedia CPAN distribution.

Report information
The Basics
Id: 83701
Status: open
Priority: 0/
Queue: WWW-Wikipedia

People
Owner: Nobody in particular
Requestors: interpretbank [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: bug-WWW-Wikipedia
Date: Fri, 01 Mar 2013 11:26:44 +0100
To: bug-WWW-Wikipedia [...] rt.cpan.org
From: InterpretBank <interpretbank [...] gmail.com>
Dear developers,

I think I discovered a bug in your fantastic module.

Version: WWW-Wikipedia-2.01
Perl: 5.8
OS: Windows 7

#!/usr/bin/perl -w

use WWW::Wikipedia;
use Encode;

my $wiki = WWW::Wikipedia->new();
my $entry = $wiki->search( 'Rotation' );
my @languages_available = $entry->languages();

foreach (@languages_available) {
    print "$_\n";
}
Unfortunately  the languages in which an entry is available (as what we see in a normal Browser) are not rendered by the module. See also Perl Monks: http://perlmonks.com/?node_id=1021054

Thank you very much
Claudio
As far as I understand Wikipedia stopped having the cross-site links in the pages. They now have a separate site linked from each page. For example the page about Perl http://en.wikipedia.org/wiki/Perl leads to this page: http://www.wikidata.org/wiki/Q42478 that links back to all the languages. I am not sure, but this might be the json version of it: http://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Perl&format=json