Skip to content

Instantly share code, notes, and snippets.

@mzemel
Created July 2, 2013 01:57
Show Gist options
  • Save mzemel/5906252 to your computer and use it in GitHub Desktop.
Save mzemel/5906252 to your computer and use it in GitHub Desktop.
Gets all cities (messy)
#!/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