Skip to content Skip to sidebar Skip to footer

Download Video From A Direct Url With Python

I want to download videos with python. I tried using youtube-dl, but the site I wish to download videos from is not supported. How to download videos in Python. First I tried to ge

Solution 1:

urllib.URLopener doesn't handle redirects by default

Use urllib.FancyURLopener instead:

import urllib
test=urllib.FancyURLopener()
test.retrieve("http://www.animefun.com/dl/googDev.php?url=/108994262975881368074/Po270.flv","testout.flv")

Post a Comment for "Download Video From A Direct Url With Python"