iMacros for Firefox is a helpful little tool for scraping data of off web pages.  In order to get data to geocode for Google Maps, I needed some way to get the data.  I looked into some other solutions, and many were quite costly.  The learning curve for iMacros is not too steep.  Here is the code I wrote to scrape off of the page http://www.nyintergroup.org/meetinglist/zone.cfm?zone=01&boro=M


VERSION BUILD=6251204 RECORDER=FX
SET !EXTRACT_TEST_POPUP NO
SET !ERRORIGNORE YES
TAB T=1
TAG POS=1 TYPE=B ATTR=TXT:SAT
TAG POS=R{{!LOOP}} TYPE=P ATTR=TXT:* EXTRACT=HTM
TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=HTM
TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=HTM
TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=HTM
TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=HTM
TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=HTM
TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=HTM
TAG POS=R1 TYPE=TD ATTR=TXT:* EXTRACT=HTM
'
SAVEAS TYPE=EXTRACT FOLDER=* FILE=NyMetroIntergroup.csv

Advertisements