This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Take a .csv file with IP addresses in a single column, and create a new file with the ip addresses | |
# and their associated ZIP codes | |
# Requires: Ruby, geocoder (gem install geocoder once ruby is installed | |
# Requies: File with ip addresses called ips.csv | |
require 'geocoder' | |
require 'csv' | |
ips = CSV.read("ips.csv").flatten |