NAME
Net::DiffBot - Interface to the diffbot.com API
VERSION
Version 0.02
SYNOPSIS
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)
...
SUBROUTINES/METHODS
new
Constructor method, you need to pass the diffbot token
my $d = Net::DiffBot->new('token' => 'diffbottoken');
get_data_from_url
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.
get_data_from_content
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.
AUTHOR
Bruno Martins, <bscmartins at gmail.com>
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Net::DiffBot
Github repo https://github.com/bmartins/Net-DiffBot
Search CPAN
LICENSE AND COPYRIGHT
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:
- Around line 204:
'=item' outside of any '=over'