Freebase

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/iso3166

1

alpha2' : None, '/location/statistical_region/population' : [{'number': None}] }]))

Leave a comment

Your email address will not be published. Required fields are marked *