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/iso31661alpha2' : None, '/location/statistical_region/population' : [{'number': None}] }]))

Leave a Reply

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