Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Extract table data

$
0
0
Hi I was wondering if anybody could help me with this problem.

I am trying to get the links for a bunch of reports on a webserver. The page with the reports has a table similar to:
<td>Report 1</td>
<td>
<a href="link to the report&type=PDF">PDF</a>
</br>
<a href="link to the report&type=CSV">CSV</a>
</td>
<td>Description of report 1</td>
</tr>
<tr>

<td>Report 2</td>
<td>
<a href="link to the report&type=CSV">CSV</a>
</td>
<td>Description of report 2</td>
</tr>
<tr>

<td>Report 3</td>
<td>
<a href="link to the report&type=PDF">PDF</a>
</br>
<a href="link to the report&type=CSV">CSV</a>
</td>
<td>Description of report 3</td>
</tr>
<tr>

Using the _IELinkGetCollection I have managed to write to a file the links where the links inner text is PDF or CSV but what would be helpful is if I could prefix each link with the table data for the report title so I know what report link is which.

At the minute I just have two loops, the first gets each link that is PDF and prefixs "PDF LINK x"  and then I do the same again for the CSV reports.

If someone could point me in the right direction, or even provide some code, that would be fantastic.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>