mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-12 11:15:14 +02:00
17 lines
381 B
Plaintext
17 lines
381 B
Plaintext
LET page = DOCUMENT("https://soundcloud.com", { driver: "cdp"})
|
|
LET doc = page.mainFrame
|
|
|
|
WAIT_ELEMENT(doc, ".trendingTracks")
|
|
SCROLL_ELEMENT(doc, ".trendingTracks")
|
|
WAIT_ELEMENT(doc, ".trendingTracks .badgeList__item")
|
|
|
|
LET song = ELEMENT(doc, ".trendingTracks .badgeList__item")
|
|
CLICK(song)
|
|
|
|
WAIT_ELEMENT(doc, ".l-listen-hero")
|
|
|
|
RETURN {
|
|
page: page.url,
|
|
first: doc.url
|
|
}
|