!!!! NOTICE !!!! FREIDA frequently changes their website structure. I have attempted to keep extract-data-from-html.pl up to date, but they have also changed the way they deal with session management so that it is no longer easy to look up the address of a program using it's ID number -- which means all of the coordinates are currently based only on the City+State. If someone is interested in updating the code to deal with the cookies/sessions so that the location information works better, please let me know. !!!! NOTICE !!!! To use this code... 0) Get a Google API Key for yourself, and put set that key as an enviornment variable in your shell using the name "GOOGLE_KEY" ... http://code.google.com/apis/maps/signup.html 1) Go to FREIDA, do a "Search Plus" for a list of programs... https://freida.ama-assn.org/Freida/user/viewProgramSearch.do 2) Save the "Search Plus" HTML to a File (ie: myprograms.html) 3) Use extract-data-from-html.pl to pull out the program data from the HTML and build up a pipe ("|") deliminted file. This script fetches additional data about each program from FREIDA as well. extract-data-from-html.pl myprograms.html > myprograms.raw.data 4) run add-geodata.pl on your raw data, to figure out hte latitute and longitude for each program (this requires the GOOGLE_KEY env variable... add-geodata.pl myprograms.raw.data > myprograms.data 5) run make-kml.pl to build the KML file from your pipe delimited data... make-kml.pl "My Programs" myprograms.data > myprograms.kml NOTE: Some FREIDA searches give you an error saying they match too many programs and you have to narrow your search. THe way arround this is to use Location filters to divide up your results into a few seperate HTML files, and pass them all to extract-data-from-html.pl extract-data-from-html.pl part1.html part2.html > all.raw.data