1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/examples/static-page.fql
John Bampton eae2b01feb
Fix the embedded mode example. (#474)
Remove keyword desc.

Based on Arango keywords.

https://www.arangodb.com/docs/3.6/aql/fundamentals-syntax.html#keywords

Also fix static-page.fql example
2020-04-20 15:53:36 -04:00

14 lines
377 B
Plaintext

LET doc = DOCUMENT("https://github.com/topics")
FOR el IN ELEMENTS(doc, ".py-4.border-bottom")
LIMIT 10
LET url = ELEMENT(el, "a")
LET name = ELEMENT(el, ".f3")
LET description = ELEMENT(el, ".f5")
RETURN {
name: TRIM(name.innerText),
description: TRIM(description.innerText),
url: "https://github.com" + url.attributes.href
}