github.com/MontFerret/ferret@v0.18.0/examples/static-page.fql (about)

     1  LET doc = DOCUMENT("https://github.com/topics")
     2  
     3  FOR el IN ELEMENTS(doc, ".py-4.border-bottom")
     4      LIMIT 10
     5      LET url = ELEMENT(el, "a")
     6      LET name = ELEMENT(el, ".f3")
     7      LET description = ELEMENT(el, ".f5")
     8  
     9      RETURN {
    10          name: TRIM(name.innerText),
    11          description: TRIM(description.innerText),
    12          url: "https://github.com" + url.attributes.href
    13      }