Navigating Nested Tables and Extracting Data

Get help with using AutoHotkey and its commands and hotkeys

Navigating Nested Tables and Extracting Data

25 May 2017, 12:22

I am trying to copy the text out of the first column of every row in a table on a website. I am having trouble getting to the actual table. The structure of the site to the table is as follows:

<table> //this is not the table I'm interested in
<tr> begin rows of data I am trying to extract from

My attempt at it is as follows:

Code: Select all

outerTable := wb.document.getElementById("outerTableID").getElementsByTagName("tbody")[0].getElementsByTagName("tr")[2].getElementsByTagName("td")

Table := outT.getElementById("innerTableID").getElementsByTagName("tbody").getElementsByTagName("tr")[1].innertext

Posts: 27
Joined: 02 Nov 2017, 08:55

Re: Navigating Nested Tables and Extracting Data

18 Jan 2018, 16:22

did you ever get this to work? I am in a similar boat where i have a table within table and i need to access first row element of the first column.


Return to “Ask For Help”

Who is online

Users browsing this forum: AHK_user, Google [Bot], JustGamerx, markc63 and 65 guests