You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.