Diffbot extracts web data and content from articles, products, discussions, images, and more. Using AI, computer vision, and natural language processing, the API understands objects from any webpage and retrieves clean, structured data. The Diffbot block for analyzing and extracting web data allows you to process incoming real-time messages with attached URLs, and amend website contextual information to that stream.
This block analyzes incoming messages with attached URLs using Diffbot to give amend website contextual information to the stream.
To learn more about Diffbot API and getting your production keys, visit DiffBot Registration
Input Channel: diffbot-channel (configurable) If the message contains an "url" field, the block will use the URL in the "url" field to send to Diffbot for analysis.
{ "url" : "https://sports.yahoo.com/news/power-rankings-denny-hamlin-heads-into-the-chase-at-no-1-183112294.html" }
The Diffbot block sends the url to Diffbot for analysis and appends the returned analysis into the message payload
{ "url": "https://sports.yahoo.com/news/power-rankings-denny-hamlin-heads-into-the-chase-at-no-1-183112294.html", "diffbotResponse": < Response provided by Diffbot > }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.