Skip to content

Instantly share code, notes, and snippets.

@beanyoung
Created January 2, 2014 16:26
Show Gist options
  • Save beanyoung/8221818 to your computer and use it in GitHub Desktop.
Save beanyoung/8221818 to your computer and use it in GitHub Desktop.
diffbot demo
from diffbot import Client
c = Client('demo_token')
url = 'http://www.diffbot.com/products/automatic/article/'
json_object = c.get('/v2/article', url)
data = 'Now is the time for all good robots to come to the aid of their-- oh never mind, run!'
json_object = c.post('/v2/article', url, content_type='text-plain', data=data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment