Skip to content

Instantly share code, notes, and snippets.

@josephmisiti
Created June 15, 2014 21:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephmisiti/ceea20f2fd5ff1874606 to your computer and use it in GitHub Desktop.
Save josephmisiti/ceea20f2fd5ff1874606 to your computer and use it in GitHub Desktop.
def create_bulk_job(urls, name):
apiUrl = 'http://api.diffbot.com/v3/article'
params = dict(token=TOKEN,
name=name,
urls=urls,
apiUrl=apiUrl)
try:
response = requests.post(url,params=params)
return simplejson.loads(response.content)
except:
return None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment