getting country population data from freebase:
from freebase.api import HTTPMetawebSession, MetawebError
mss = HTTPMetawebSession('www.freebase.com')
list(mss.mqlread([{'name': None, 'type': '/location/country', '/location/country/iso31661alpha2' : None, '/location/statistical_region/population' : [{'number': None}] }]))
No comments:
Post a Comment