When I type "k" in google, it displays a list of potential results as return, I would like to know on how to collect them into text file and where to look for those potential results from HTML viewsource.
Does anyone have any suggestions?
Thanks in advance for any suggestions
Using my signature:
$oIE = _IECreate("Google.com")
$oInput = _IEGetObjById($oIE,'lst-ib')
_IEFormElementSetValue($oInput,"test")
_IEAction($oInput,"blur")
$sXpath = "//li[@class='sbsb_c gsfs')]//div[@class='sbqs_c']"
$aReturnResults = BGe_IEGetDOMObjByXPathWithAttributes($oIE,$sXpath,5000)
_ArrayDisplay($aReturnResults)
For $i = 0 To UBound($aReturnResults)-1
ConsoleWrite($aReturnResults[$i].Innertext & @CRLF)
Next
output: