Created
January 2, 2014 16:26
-
-
Save beanyoung/8221818 to your computer and use it in GitHub Desktop.
diffbot demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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