Skip to content Skip to sidebar Skip to footer

Python Download Video From Website Without Knowing File Name

i am wondering how it is possible to download a video from a website. import urllib testfile = urllib.URLopener() testfile.retrieve('http://randomsite.com/file.gz', 'file.gz') I u

Solution 1:

from __future__ import unicode_literals
import youtube_dl

ydl_opts = {}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.download(['YOUR URL'])

I was able to download videos from a none youtube site with the above code :)


Post a Comment for "Python Download Video From Website Without Knowing File Name"