• Become a Power user Intro to AutoHotkey Intermediate AutoHotkey Intermediate Objects GUIs are Easy w/AutoHotkey Painlessly switch from V1 to V2

Scraping data from a table with AutoHotkey & IE

In this tutorial I walk through how to “walk the DOM” (DOM= Document Object Model) with IE and AutoHotkey.

I used to grab all the text and then try and use a regular expression to parse the data.  Taking advantage of the DOM is critical to learning how to scrape pages efficiently.   In this case I’m simply relying on built in tags to an HTML table.

Here is the first bit of code I mention to scrape data from a table

Navigating the DOM with parentNode, previousSibling,nextSibling, firstChild, and lastChild

Navigating the DOMSometimes it is not convenient to grab the specific element you want while you’re scraping a web page.  In this tutorial I walk through how to use parentNode, previousSibling,nextSibling,firstChild and lastChild. Continue reading