1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-04 10:35:08 +02:00
ferret/examples/dynamic-page.fql

12 lines
337 B
Plaintext
Raw Permalink Normal View History

2019-07-23 20:55:26 +02:00
LET doc = DOCUMENT('https://soundcloud.com/charts/top', { driver: "cdp" })
2018-09-18 22:42:38 +02:00
2018-09-23 10:33:20 +02:00
WAIT_ELEMENT(doc, '.chartTrack__details', 5000)
2018-09-18 22:42:38 +02:00
LET tracks = ELEMENTS(doc, '.chartTrack__details')
FOR track IN tracks
RETURN {
artist: TRIM(INNER_TEXT(track, '.chartTrack__username')),
track: TRIM(INNER_TEXT(track, '.chartTrack__title'))
2018-09-18 22:42:38 +02:00
}