Gets the zip of a user
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
getzip.cgi
getzip.py

README

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.