mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
12 lines
343 B
Plaintext
12 lines
343 B
Plaintext
LET doc = DOCUMENT('https://soundcloud.com/charts/top', { driver: "cdp" })
|
|
|
|
WAIT_ELEMENT(doc, '.chartTrack__details', 5000)
|
|
|
|
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'))
|
|
}
|