Created
July 2, 2013 01:57
-
-
Save mzemel/5906252 to your computer and use it in GitHub Desktop.
Gets all cities (messy)
This file contains hidden or 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
#!/bin/bash | |
for a in {a..z} | |
do | |
for b in {a..z} | |
do | |
q=$a$b | |
curl "http://www.homeseekers.com/Include/AJAX/MapSearch/GetLocations.aspx?q="$q"&type=city" >> cities.txt | |
done | |
done | |
ruby print_cities.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment