Scraping data from a table with AutoHotkey & IE

A cartoon robot with a webcam eye beside a laptop showing a web page, with colorful app icons floating above and a stack of web layouts beside itIn 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
found here.

Joe Glines

Joe Glines spent 20 years as a corporate data scientist before going all in on automation. He now uses AI to build automation in AutoHotkey, Python and Rust, has made 1,500+ tutorials, and runs the-Automator with a small team that has shipped 450+ time-saving tools.

Comments are closed.