I want to figure out where a host is located, in which country. There are sites that look up this information (e.g. http://geoip.flagfox.net/). Before writing a scraper, I would like to ask if you know a python API for this task.
Update: following the link of Ashwini Chaudhary, I made my own ip2country converter. Available here.
Try this:
http://netsekure.org/wp-content/uploads/ip2loc.py
run this script from command prompt : python ip2loc.py all