Net::DiffBot - Interface to the diffbot.com API
Version 0.02
This module is just an interface for www.diffbot.com API.
use Net::DiffBot; my $d = Net::DiffBot->new('token' => 'diffbottoken'); my $page_data = $d->get_data_from_url($url) ...
Constructor method, you need to pass the diffbot token
my $d = Net::DiffBot->new('token' => 'diffbottoken');
Fetch diffbot data based on the url , along with the url you can set other options
my $page_data = $d->get_data_from_url($url, 'tags' => 1, summary => 1) Valid flags are: callback, html, dontStripAds, tags, comments, summary You can see the use of theses flags at www.diffbot.com Returns the page data as an hashref.
Fetch diffbot data based on sent content , you also need to send the url and the content type ('text/plain', 'text/html'). You can also set other options as with get_data_from_url.
my $page_data = my $d->get_data_from_content($url, $content, $content_type, 'tags' => 1, summary => 1) Valid flags are: callback, html, dontStripAds, tags, comments, summary You can see the use of theses flags at www.diffbot.com Returns the page data as an hashref.
Bruno Martins, <bscmartins at gmail.com>
<bscmartins at gmail.com>
You can find documentation for this module with the perldoc command.
perldoc Net::DiffBot
Github repo https://github.com/bmartins/Net-DiffBot
Search CPAN
http://search.cpan.org/dist/Net-DiffBot/
Copyright 2012 Bruno Martins.
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.
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
To install Net::DiffBot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::DiffBot
CPAN shell
perl -MCPAN -e shell install Net::DiffBot
For more information on module installation, please visit the detailed CPAN module installation guide.