Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
How can i change download location and point it to my local server am using python #11597
Comments
|
i got it |
How can i change download location and point it to my local server
`ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '128', # 192 or 128<< this will decrease file size
}],
}
#with youtube_dl.YoutubeDL(ydl_opts) as ydl:
#ydl.download([url])
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
info_dict = ydl.extract_info(url, download=True)`