Skip to content

Instantly share code, notes, and snippets.

@danvbe danvbe/
Last active Aug 29, 2015

What would you like to do?
Use Diffbot to extract the pubdate of an article page from Python?
import urllib2
import json
url = "[your_token_here]&"
req = urllib2.Request(url)
opener = urllib2.build_opener()
f =
json = json.loads(
print json['objects'][0]['date']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.