Skip to content

Instantly share code, notes, and snippets.

@Treevs
Created June 4, 2015 05:16
Show Gist options
  • Save Treevs/af827e907a9fc0283030 to your computer and use it in GitHub Desktop.
Save Treevs/af827e907a9fc0283030 to your computer and use it in GitHub Desktop.
import requests
payload = {'type': 'all-meat', 'paras': '3', 'sentences': '30', 'start-with-lorem': '1', 'format': 'json'}
r = requests.get('http://baconipsum.com/api', params=payload)
print (r.json())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment