Download video from a direct URL with Python

后端 未结 1 1311
说谎
说谎 2020-12-30 17:13

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 trie

相关标签:
1条回答
  • 2020-12-30 17:36

    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")
    
    0 讨论(0)
提交回复
热议问题