Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngerakines/perl-www-search-urbandictionary
https://github.com/ngerakines/perl-www-search-urbandictionary
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/ngerakines/perl-www-search-urbandictionary
- Owner: ngerakines
- Created: 2008-12-24T03:21:38.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2008-12-24T03:21:46.000Z (almost 16 years ago)
- Last Synced: 2024-05-01T13:43:28.894Z (8 months ago)
- Homepage:
- Size: 82 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
WWW::Search::UrbanDictionary - Search the Urban Dictionary via SOAPSYNOPSIS
use WWW::Search;my $key = 'abcdefghijklmnop1234567890';
my $search = WWW::Search->new('UrbanDictionary', key => $key);
$search->native_query("emo");
while (my $result = $search->next_result() ) {
print $result->{definition}, "\n";
print $result->{author}, "\n";
print $result->{example}, "\n";
print $result->url, "\n";
print "\n";
}DESCRIPTION
This class is an Urban Dictionary specialization of WWW::Search. It
handles searching Urban Dictionary http://www.urbandictionary.com/ using
its new SOAP API http://api.urbandictionary.com/.All interaction should be done through WWW::Search objects.
Note that you must register for an API account and have a valid Urban
Dictionary API license key before using this module.This module reports errors via croak().
This module uses SOAP::Life to do all the dirty work.
AUTHOR
Nick GerakinesCOPYRIGHT
Copyright (C) 2005, Nick GerakinesThis module is free software; you can redistribute it or modify it under
the same terms as Perl itself.