Hacker News new | past | comments | ask | show | jobs | submit login
Does anyone know of any websites that let you download entire suno playlists?
2 points by stormlightkalad 4 months ago | hide | past | favorite | 2 comments
I've seen song downloaders but I've yet to find one that lets you download whole playlists. can someone find or make one? either comment here or dm me on myminifactory: @NightmareNest



OP, it looks like you can just grab the song IDs from their playlist page and then download them from their CDN.

If you navigate to a playlist page and run this code in your browser console, it should fetch all the songs:

  (async () => {
    const songRows = document.querySelectorAll('div[data-testid="song-row"]');
    
    for (const row of songRows) {
        const link = row.querySelector('a[href^="/song/"]');
        const title = row.querySelector('span[title]').title;
        const id = link.href.split('/song/')[1];

        const response = await fetch(`https://cdn1.suno.ai/${id}.mp3`);
        const blob = await response.blob();
        const url = URL.createObjectURL(blob);
        const a = document.createElement('a');
        a.href = url;
        a.download = `${title}.mp3`;
        document.body.appendChild(a);
        a.click();
        document.body.removeChild(a);
        URL.revokeObjectURL(url);
    }
  })();


The yt-dlp project has an issue to add it

https://github.com/yt-dlp/yt-dlp/issues/10368

and that's the normally the most comprehensive.

https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites....

(When I tried the "generic" command suggested in that issue, it downloaded only the first song in the playlist.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: