mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
eae2b01feb
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
14 lines
377 B
Plaintext
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
|
|
}
|