V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
moonkiller
V2EX  ›  问与答

youtube-dl 使用 get 参数获取的视频地址,为什么只有很短时间内可以下载?

  •  
  •   moonkiller · 2016-06-17 19:56:44 +08:00 · 7902 次点击
    这是一个创建于 3084 天前的主题,其中的信息可能已经有所发展或是发生改变。
    针对 pornhub 上的播单,直接用 youtube-dl 下载的话,速度太慢了,不到 100kb
    于是使用 get 参数,获取了播单里的视频地址
    都是 http://cdn2b.video 开头的

    这些地址导入 idm ,一开始是可以下载;
    但是过了一会儿,后面就全部下载错误了
    该怎么办?
    4 条回复    2016-06-17 20:06:44 +08:00
    Floyder
        1
    Floyder  
       2016-06-17 19:59:36 +08:00
    说起来最近 youtube-dl a,b 俩站都不能解析了,是我一个人的问题么?
    Playing: http://www.bilibili.com/video/av4987511/
    [ytdl_hook] Traceback (most recent call last):
    [ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    [ytdl_hook] "__main__", fname, loader, pkg_name)
    [ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
    [ytdl_hook] exec code in run_globals
    [ytdl_hook] File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 421, in main
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 411, in _real_main
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1736, in download
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 676, in extract_info
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 341, in extract
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/extractor/bilibili.py", line 62, in _real_extract
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 524, in _download_xml
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 280, in compat_etree_fromstring
    [ytdl_hook] File "/usr/local/bin/youtube-dl/youtube_dl/compat.py", line 269, in _XML
    [ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1642, in feed
    [ytdl_hook] self._raiseerror(v)
    [ytdl_hook] File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xml/etree/ElementTree.py", line 1506, in _raiseerror
    [ytdl_hook] raise err
    [ytdl_hook] xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1, column 0
    [ytdl_hook] youtube-dl failed, trying to play URL directly ...
    Failed to recognize file format.
    ZGLHHH
        2
    ZGLHHH  
       2016-06-17 20:00:19 +08:00
    token 有效期?
    moonkiller
        3
    moonkiller  
    OP
       2016-06-17 20:01:51 +08:00
    @Floyder 倒没试过 a\b 站刚我又用 youtube-dl 直接下载,被提示远程主机强迫关闭了一个现有的链接。。。
    看来是不是被 pornhub 那边给屏蔽了。。。
    debiann
        4
    debiann  
       2016-06-17 20:06:44 +08:00
    @Floyder 下载成功,试着更新下 youtube-dl
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5451 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 08:29 · PVG 16:29 · LAX 00:29 · JFK 03:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.