!7 p { S query = "hello"; S userAgent = "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:53.0) Gecko/20100101 Firefox/53.0"; S html = loadPageWithUserAgent("http://google.com/search?q=" + urlencode(query), userAgent); S url = first(loadPage_responseHeaders->get("Location")); if (url != null) html = loadPageWithUserAgent(url, userAgent); //print(html); pnlStruct(loadPage_responseHeaders!); LL h3s = findContainerTagDeep(html, "h3"); pnlStruct(h3s); for (L tok : h3s) { L linkTok = first(findContainerTag(tok, "a")); if (empty(linkTok)) continue; S link = tagGet(second(linkTok), "href"); S text = join(dropTags(contentsOfContainerTag(linkTok))); print("Link: " + link); print(" Text: " + text); } }