below is the code for downloading youtube files providing URL, but at present the URL is static, I'm trying to make it dynamic so that user can put URL at runtime. and secondly, I'm also trying to set the path where to save, file by the user but, somehow not able to do
(I'm working on python3 idle with windows)
from __future__ import unicode_literals
import youtube_dl
import urllib
import shutil
ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['https://youtu.be/zhWDdy_5v2w'])
print("DONE!")