Skip to content

Instantly share code, notes, and snippets.

@guyhughes
Created September 17, 2015 22:33
Show Gist options
  • Save guyhughes/314a6d8802814a72d46f to your computer and use it in GitHub Desktop.
Save guyhughes/314a6d8802814a72d46f to your computer and use it in GitHub Desktop.
OONI API Reports consumer into python3 dict
#!/usr/bin/env python3.4
import json
import requests
url = 'http://api.ooni.io/api/reports'
r = requests.get(url)
reports = json.loads(r.text)
# manual garbage collection
del r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment