I have a code that downloads video with python pafy module
At default it downloads the video in where my .py
file is. But I want the Windows Downloads
Folder as the destination of the downloaded video. How can I do it? Thanks in Advance
import pafy
url = "video_url"
video = pafy.new(url)
#all streams
streams = video.streams
#best video
best = video.getbest()
#download
try:
best.download()
except Exception as e:
print ("Error Downloading video")
else:
print ("Video Downloaded Successfully")