推荐学习书目
› 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 · Aug 23, 2016 · 11796 views
    This topic created in 3690 days ago, the information mentioned may be changed or developed.

    如题。。

    4 replies  •  2016-10-06 11:04:19 +08:00
    skydiver
        1
    skydiver  
       Aug 23, 2016   ❤️ 1
    提问型主题:请用准确的语言描述你遇到的问题,如果问题足够在标题中写完,那么正文是不用填写的,在正文中写 RT 是完全没有必要的。
    nuomi
        2
    nuomi  
       Aug 23, 2016   ❤️ 1
    `you-get URL1 URL2 URL3 ETC`
    pthreadself
        3
    pthreadself  
       Aug 24, 2016
    #!/bin/bash
    cat file_which_contains_a_lot_of_urls | while read line
    do
    you-get "$line"
    done
    heguannantc
        4
    heguannantc  
       Oct 6, 2016
    @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 都能下载,我解析到一个五十集的电视剧一次只能下几个,中间有好多都略过去了,求问是什么原因
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2484 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 14:50 · PVG 22:50 · LAX 07:50 · JFK 10:50
    ♥ Do have faith in what you're doing.