# Create a youtube-dl instance with youtube_dl.YoutubeDL(options) as ydl: # Download the video ydl.download([video_url])