mirror of
https://github.com/MontFerret/ferret.git
synced 2026-06-20 01:17:53 +02:00
Update static-page.fql
This commit is contained in:
@@ -1,4 +1,13 @@
|
|||||||
LET doc = DOCUMENT('https://news.ycombinator.com/')
|
LET doc = DOCUMENT("https://github.com/topics")
|
||||||
|
|
||||||
FOR post IN ELEMENTS(doc, '.storylink')
|
FOR el IN ELEMENTS(doc, ".py-4.border-bottom")
|
||||||
RETURN post.attributes.href
|
LIMIT 10
|
||||||
|
LET url = ELEMENT(el, "a")
|
||||||
|
LET name = ELEMENT(el, ".f3")
|
||||||
|
LET desc = ELEMENT(el, ".f5")
|
||||||
|
|
||||||
|
RETURN {
|
||||||
|
name: TRIM(name.innerText),
|
||||||
|
description: TRIM(desc.innerText),
|
||||||
|
url: "https://github.com" + url.attributes.href
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user