NAME
WWW::WWWJDIC - Get information from online Japanese dictionary WWWJDIC
SYNOPSIS
use WWW::WWWJDIC;
(This example is included as synopsis.pl in the distribution.)
VERSION
This documents WWW::WWWJDIC version 0.002 corresponding to git commit 8035373c2b120e8ec661e7069fc24c3498e00347 released on Tue Oct 10 10:14:25 2017 +0900.
DESCRIPTION
Scrape the WWWJDIC online dictionaries.
METHODS
new
my $wwwjdic = WWW::WWWJDIC::new (mirror => "japan")
Create the object which extracts the information from WWWJDIC. Arguments:
mirror: Mirror site. This can take the values @SCRAPE MIRROR NAMES@.
lookup_url
my $url = $wwwjdic->lookup_url ($key, $search_type);
For example,
my $wwwjdic = WWW::WWWJDIC->new();
$wwwjdic->lookup_url ("日本");
returns a value http://
Make a lookup url (the "backdoor URL") which links to a WWWJDIC page.
lookup
Look up a word in WWWJDIC.
parse_results
$html = <contents of WWWJDIC page>;
my $results = $wwwjdic->parse_results ($html);
BUGS
The module relies on the structure of the WWWJDIC reply page, which seems to change every few months.
AUTHOR
Ben Bullock, <bkb@cpan.org>
COPYRIGHT & LICENCE
This package and associated files are copyright (C) 2009-2017 Ben Bullock.
You can use, copy, modify and redistribute this package and associated files under the Perl Artistic Licence or the GNU General Public Licence.