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
leetao102
V2EX  ›  Python

请问一下,you-get 如何批量下载视频.

  •  
  •   leetao102 · 2016-08-23 14:05:47 +08:00 · 10529 次点击
    这是一个创建于 2774 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题。。

    4 条回复    2016-10-06 11:04:19 +08:00
    skydiver
        1
    skydiver  
       2016-08-23 14:28:58 +08:00   ❤️ 1
    提问型主题:请用准确的语言描述你遇到的问题,如果问题足够在标题中写完,那么正文是不用填写的,在正文中写 RT 是完全没有必要的。
    nuomi
        2
    nuomi  
       2016-08-23 23:53:30 +08:00   ❤️ 1
    `you-get URL1 URL2 URL3 ETC`
    pthreadself
        3
    pthreadself  
       2016-08-24 10:36:49 +08:00
    #!/bin/bash
    cat file_which_contains_a_lot_of_urls | while read line
    do
    you-get "$line"
    done
    heguannantc
        4
    heguannantc  
       2016-10-06 11:04:19 +08:00
    @pthreadself 这样似乎不行
    我的程序是这样的

    #获取播放列表|搜寻 URL|保存至 Playlist.txt
    you-get -i 优酷剧集列表页 | grep -e url | sed "s/url:/\ /g" | sed "s/[[:space:]]//g" > List.txt
    #--format=hd2 是优酷下载 720p 的参数
    cat List.txt | while read line
    do
    you-get --format=hd2 "$line"
    done

    但是最后在实际操作中并不是每一个 URL 都能下载,我解析到一个五十集的电视剧一次只能下几个,中间有好多都略过去了,求问是什么原因
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1019 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 19:56 · PVG 03:56 · LAX 12:56 · JFK 15:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.