So, I have a list of a bunch of city and state/region combinations (where some cities do not have a paired state/region) and I'd like to use these to fill in country, continent, (and state/region where it's not supplied) information. Where multiple regions would fit, I'm willing to accept any of them, though the biggest one would be best. What's the simplest library for Python that will let me do this?
An example: given "Istanbul," I'd want something like:
{istanbul, istanbul province, turkey, europe}
You don't need any library for this at all, really. What you do need is a list of geographic locations. If you don't have that there are geolocation services online you can use, that will do these things for you, accessible via http (and hence urllib). You might need a library to interpret the response, that could be XML, for example.
How Can I Determine a Region, Country, and Continent Based on a City Using Python?