I just wanted to code a little script to get data from a website, using COM Objects. And I'm really confused:
The examples in https://autohotkey.com/boards/viewtopic.php?p=398#p398 work fine, but the linked documentation has methods & properties which seem not to be supported - and on the other hand, I can't find document.links and document.all() which are used in the COM examples (..but they do work..)
The basic structure of my script:
Code: Select all
WebRequest := ComObjCreate("WinHttp.WinHttpRequest.5.1") WebRequest.Open("GET", req_str) WebRequest.Send() document := ComObjCreate("HTMLfile") document.write(WebRequest.ResponseText) dtds := document.querySelectorAll("td + td")
when using the provided example using document.links it works, but it doesn't give me the additional info about those links I'm trying to get.
So... is the linked doc the wrong one?
And what's the preferred method of getting & analyzing a webpage right up to date, still COM or anything I've missed?
Thanks in advance!