Diffbot

FREE
By diffbot
Updated 5 months ago
Data
2.8/10
Popularity Score
478ms
Latency
100%
Success Rate
jipomx5 years ago
Could not download page (200 OK)Hi, I have tried to use Diffbot using Unirest but i get this error: <callback>({"error":"Could not download page (200 OK): http:\/\/www.eluniversalmas.com.mx:80\/columnas\/2013\/05\/101576.php","errorCode":500,"date":"Jueves 16 de mayo de 2013"}) This is the code: #!/usr/bin/env python # -*- coding: utf-8 -*- import unirest response = unirest.post( "https://diffbot-diffbot.p.mashape.com/article?token=(mydiffbottoken)&url=http%3A%2F%2Fwww.eluniversalmas.com.mx%2Fcolumnas%2F2013%2F05%2F101576.php&callback=%3Ccallback%3E&html=%3Chtml%3E&dontStripAds=%3CdontStripAds%3E&timeout=15000&tags=%3Ctags%3E&comments=%3Ccomments%3E&summary=%3Csummary%3E", { "X-Mashape-Authorization": "(mymashapetoken)" }, { "url": "http://www.milenio.com/cdb/doc/noticias2011/c20fce39b565ac4741af5a20e0a7b986" }, callback=None ); print response._raw_body
ismaelc5 years ago
Hi jipomx, are you able to try this out in the Mashape test console? And see if it works there?
Hi Developer, feel free to post your answer:

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://diffbot-diffbot.p.rapidapi.com/v2/article?timeout=15000&fields=text%2Chtml%2Cimages(pixelHeight%2CpixelWidth)&url=http%3A%2F%2Fblog.diffbot.com%2Fdiffbot-api-batch-requests%2F")
.header("X-RapidAPI-Host", "diffbot-diffbot.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication