Created
October 4, 2013 23:10
-
-
Save diezguerra/6834359 to your computer and use it in GitHub Desktop.
This file contains 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
import requests | |
import json | |
r = requests.get('https://graph.facebook.com/search?q=&type=adcountry&limit=500') | |
countries = {country['name']: country['country_code'] for country in r.json()['data']} | |
assert countries['Spain'] == 'ES' | |
assert len(countries) == 216 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should be in fbgraphlib.py