Thanks for the answer to my latest post I was able to write another piece of my program. I'm stuck again, however.
Code: Select all
<article class="article-detail-description">
<h1 class="page-heading">
Normatywne i empiryczne teorie demokracji
<br /><small>Normative and empirical theories of democracy</small>
</h1>
<div>
<strong>Author(s): </strong>Jane Doe<br /><strong>Subject(s): </strong>Politics / Political Sciences<br />
<strong>Published by: </strong>KSIĘGARNIA AKADEMICKA Sp. z o.o.<br/><
strong>Keywords: </strong>democracy; norms; evaluation; explanation<br/>
</div>
Here's my attempt. First I look for every strong tag and then look for "Author(s): ". But I cannot get what is after it.
An edit: I'd like to avoid using RegEx.
Code: Select all
IE := ComObjCreate("InternetExplorer.Application")
IE.Visible := false
IE.Navigate("https://www.ceeol.com/search/article-detail?id=343886")
while IE.readyState != 4 || IE.document.readyState != "complete" || IE.busy
Sleep 10
script_class := IE.document.querySelectorAll("strong") ;get all classes on page
while A_Index < script_class.length
if InStr(script_class[A_Index].outerHtml,"Author(s): ")
MsgBox % script_class[A_Index].innerText
ExitApp