V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
note286
V2EX  ›  Python

you-get、youtube-dl 最近 B 站部分视频下载不了,很困惑

  •  
  •   note286 · 2018-02-03 10:02:17 +08:00 · 18880 次点击
    这是一个创建于 2245 天前的主题,其中的信息可能已经有所发展或是发生改变。

    you-get 前阵子不知道为啥关闭了 issue,有问题都没法提交了,这几天发现 B 站部分视频可以下载,部分视频无法下载,很困惑,大家知道怎么解决吗,就比如谷阿莫的这两集视频,是挨着发布的,一个可以下载,一个不可以下载。

    you-get https://www.bilibili.com/video/av18486722
    you-get: [error] oops, something went wrong.
    you-get: don't panic, c'est la vie. please try the following steps:
    you-get:   (1) Rule out any network problem.
    you-get:   (2) Make sure you-get is up-to-date.
    you-get:   (3) Check if the issue is already known, on
    you-get:         https://github.com/soimort/you-get/wiki/Known-Bugs
    you-get:         https://github.com/soimort/you-get/issues
    you-get:   (4) Run the command with '--debug' option,
    you-get:       and report this issue with the full output.
    site:                Bilibili
    title:               None
    stream:
        - format:        flv
          container:     flv
          size:          179.2 MiB (187878378 bytes)
        # download-with: you-get --format=flv [URL]
    
    you-get https://www.bilibili.com/video/av18447844
    site:                Bilibili
    title:                [谷阿莫]  5 分鐘看完 2017 自己的肉自己吃的電影《雪山奇迹 6 Below 》
    stream:
        - format:        flv
          container:     flv
          size:          116.8 MiB (122470241 bytes)
        # download-with: you-get --format=flv [URL]
    
    Downloading  [谷阿莫]  5 分鐘看完 2017 自己的肉自己吃的電影《雪山奇迹 6 Below 》.flv ...
     2.1% (  2.5/116.8MB) ├█───────────────────────────────────────┤[1/1]  964 kB/s
    

    我的 you-get 版本是you-get: version 0.4.1011, a tiny downloader that scrapes the web.最新的开发版。

    使用了最新的 2018.01.27 版本的 youtube-dl 也是同样的效果,第一个下载不了,第二个可以下载,求高人解答,谢谢。

    第 1 条附言  ·  2018-02-03 17:32:17 +08:00
    感谢大家,https://github.com/iawia002/Lulu,挺好用的
    22 条回复    2019-09-15 21:58:40 +08:00
    redapple0204
        1
    redapple0204  
       2018-02-03 10:05:11 +08:00
    我这倒好,,全都无法下载
    note286
        2
    note286  
    OP
       2018-02-03 10:06:16 +08:00
    @redapple0204 你可以试试使用开发版
    ```
    sudo pip3 install --upgrade https://github.com/soimort/you-get/archive/develop.zip
    ```
    expy
        3
    expy  
       2018-02-03 11:36:25 +08:00
    土办法一个。播放时 F12 找到地址,一段一段下回来,ffmpeg 合并,帧率显示错误可以 lsmash 再混流一次。
    onion83
        4
    onion83  
       2018-02-03 11:51:27 +08:00
    don't panic, c'est la vie
    watermeter
        5
    watermeter  
       2018-02-03 11:58:07 +08:00
    KNOX
        6
    KNOX  
       2018-02-03 12:00:36 +08:00 via Android
    我前段时间用 youtube-dl 下载过啊 要加 refer
    ioc
        7
    ioc  
       2018-02-03 12:06:44 +08:00 via Android
    接上面的土办法 F12 找到后,可以用这个工具自动下载合并。

    https://github.com/XhstormR/GetBilibili-C
    7654
        8
    7654  
       2018-02-03 12:18:00 +08:00
    昨天翻 you-get 仓库发现的 fork 版 lulu,可解决大部分不能下载的问题
    https://github.com/iawia002/Lulu
    sungkyu
        9
    sungkyu  
       2018-02-03 13:47:49 +08:00
    斗鱼的直播都下载不了了
    xuyl
        10
    xuyl  
       2018-02-03 16:24:38 +08:00
    很多 pr,官方拖了好久没合并,所以我也是用了 lulu
    note286
        11
    note286  
    OP
       2018-02-03 17:31:58 +08:00
    @7654 非常感谢,好用
    MemoryCorner
        12
    MemoryCorner  
       2018-02-03 17:33:58 +08:00
    lulu 似乎也不行,我等了好久,youtube-dl 和 you-get 就是没更新
    dada0627
        13
    dada0627  
       2018-02-03 17:35:38 +08:00 via Android
    用 IDM 下吧
    locoz
        14
    locoz  
       2018-02-03 17:54:09 +08:00
    最新的开发版应该是可以的啊?试了一下旧版本找不到标题会报错
    Commits on Feb 3, 2018
    [bilibili] fix some title regexes
    iawia002
        15
    iawia002  
       2018-02-03 18:53:20 +08:00   ❤️ 6
    hi,大家好,我是 iawia002,lulu 的维护者,以前也是 you-get 的 Contributor
    fork 它出来自己搞的主要原因有两个:1.you-get 的更新速度实在太慢,2.you-get 的很多 extractors 的代码太乱了,soimort 对 PR 的态度又很随意,这样只会导致整个项目代码越来越难以阅读和维护
    如果大家有什么问题可以提 Issues,也欢迎 Pull request
    note286
        16
    note286  
    OP
       2018-02-03 19:41:09 +08:00
    @MemoryCorner Lulu 目前解决了我的问题
    Geoion
        17
    Geoion  
       2018-02-03 19:48:31 +08:00
    感谢推荐
    Cu635
        18
    Cu635  
       2018-02-04 15:05:07 +08:00
    @iawia002
    然后 you-get 的 issue 还关闭了。。。
    iawia002
        19
    iawia002  
       2018-02-04 18:31:09 +08:00
    @Cu635 这个是因为 soimort 说他想尝试一种激进的提 issue 的方式,通过 PR 来提,你使用的哪个 extractor 挂了你就添加一个对应的单元测试来报告
    xiaoke0718
        20
    xiaoke0718  
       2018-04-05 21:42:12 +08:00
    我也是不行了 努力找方法
    note286
        21
    note286  
    OP
       2018-04-12 10:17:36 +08:00   ❤️ 1
    chemfinder
        22
    chemfinder  
       2019-09-15 21:58:40 +08:00
    知道了 视频链接要双引号就可以了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1196 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 18:16 · PVG 02:16 · LAX 11:16 · JFK 14:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.