github.com/MontFerret/ferret@v0.18.0/examples/google-search.fql (about) 1 LET google = DOCUMENT("https://www.google.com/", { 2 driver: "cdp", 3 userAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36" 4 }) 5 6 HOVER(google, 'input[name="q"]') 7 WAIT(RAND(100)) 8 INPUT(google, 'input[name="q"]', @criteria, 30) 9 WAIT(RAND(100)) 10 CLICK(google, 'input[name="btnK"]') 11 12 WAITFOR EVENT "navigation" IN google 13 14 WAIT_ELEMENT(google, "#res") 15 16 LET results = ELEMENTS(google, X("//*[text() = 'Search Results']/following-sibling::*/*")) 17 18 FOR el IN results 19 RETURN { 20 title: INNER_TEXT(el, 'h3')?, 21 description: INNER_TEXT(el, X("//em/parent::*")), 22 url: ELEMENT(el, 'a')?.attributes.href 23 }