Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- import yt_dlp
- # Make sure the "downloads" folder exists
- os.makedirs("downloads", exist_ok=True)
- url = "SoundCloud URL Here"
- opts = {
- 'format': 'bestaudio',
- 'outtmpl': r"downloads/%(title)s.%(ext)s",
- }
- with yt_dlp.YoutubeDL(opts) as ydl:
- ydl.download([url])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement