Code: Select all
<span class="valuen">
<a href="/fil/44.htm">Item 1</a>
</span>
<br>
a yact and (
<i>Deck</i>
) floating bt..
<span class="valuen">
<a href="/fil/54.htm">Item 2</a>
</span>
<br>
the item can also ok.
I am using
Code: Select all
ie := ComObjCreate("InternetExplorer.Application")
Code: Select all
ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := true
ie.Navigate("https://...")
WaitForLoad2(ie)
itms := ie.document.querySelectorAll(".valuen").length
dat := ie.document.querySelectorAll(".valuen")
loop, % itms
{
msgBox, % dat[a_index-1].nextSibling.nextSibling.nodeValue
}
[Mod edit: Change code box types from HTML5 to AHK for relevant boxes.]