Skip to content

Instantly share code, notes, and snippets.

@FGRibreau
Created June 24, 2024 20:03
Show Gist options
  • Save FGRibreau/420b5da7289969e5746298356a49423c to your computer and use it in GitHub Desktop.
Save FGRibreau/420b5da7289969e5746298356a49423c to your computer and use it in GitHub Desktop.
Download all Suno (app.suno.ai) songs displayed on a page
// open your javascript console and paste this
copy([...$('[role="grid"]')[Object.keys($('[role="grid"]')).filter(x => x.startsWith('__reactProps'))[0]].children[0].props.values[0][1].collection].filter(x => x.value.audio_url).map(x => x.value.audio_url).join(' '))
// now you have a list of mp3 urls directly in your clipboard that you can pass to wget or a url downloader
@uncocosembrado
Copy link

works great!, thanks

@Lfranca111
Copy link

Lfranca111 commented Apr 25, 2025

Im trying to do this but the issue is when pasting it in the console window it doesnt work. I looked and it seems the children element doesnt exsist.

@william-r-s
Copy link

if you want to do this from a playlist, can use
copy([...$('[role="grid"]')[Object.keys($('[role="grid"]')).filter(x => x.startsWith('__reactProps'))[0]].children[0].props.values[0][1].collection].filter(x => x.value.clip.clip.audio_url).map(x => x.value.clip.clip.audio_url).join(' '))

@josephernest
Copy link

Would you have a JS code working as of July 2025?

Something that you can copy/pate in console when you are on https://suno.com/create?wid=default&page=2

@william-r-s @FGRibreau The previous code doesn't work anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment