Created
September 17, 2015 22:33
-
-
Save guyhughes/314a6d8802814a72d46f to your computer and use it in GitHub Desktop.
OONI API Reports consumer into python3 dict
This file contains hidden or 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
| #!/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