Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
I wrote a script that get the ip address of a user and then uses that ip with an ip to location api to get the zip code of that user. getzip.cgi can be run on a browser as well as the console. getzip.py is for the console. The scripts are documented so you can tell what each line of code does. Lastly but definitely not least, I want to recognize http://checkip.dyndns.org/ and http://freegeoip.net/ because without their data I wouldn't have been able to do this.