mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
957490efec
* #19 Some work on proxy * Fixed linter issue
15 lines
395 B
Plaintext
15 lines
395 B
Plaintext
LET doc = DOCUMENT('https://soundcloud.com/charts/top', true)
|
|
|
|
WAIT_ELEMENT(doc, '.chartTrack__details', 5000)
|
|
|
|
LET tracks = ELEMENTS(doc, '.chartTrack__details')
|
|
|
|
FOR track IN tracks
|
|
LET username = ELEMENT(track, '.chartTrack__username')
|
|
LET title = ELEMENT(track, '.chartTrack__title')
|
|
|
|
RETURN {
|
|
artist: TRIM(username.innerText),
|
|
track: TRIM(title.innerText)
|
|
}
|