use WebService::Diffbot; my $diffbot = WebService::Diffbot->new( token => 'mytoken', url => 'http://www.diffbot.com' ); # Article API my $article = $diffbot->article; print "url: $article->{url}"; print "text: $article->{text}"; ... # Frontpage API my $frontpage = $diffbot->frontpage; ... # another Article API - pass new url to method $article = $diffbot->article( url => 'http://www.youtube.com' ); print "url: $article->{url}"; print "text: $article->{text}"; ...
This is the (unofficial) Diffbot Perl API - see http://www.diffbot.com for more info.
Warning, currently it supports only the Article and Frontpage API (v2).
Net::DiffBot for old API
To install WebService::Diffbot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::Diffbot
CPAN shell
perl -MCPAN -e shell install WebService::Diffbot
For more information on module installation, please visit the detailed CPAN module installation guide.