you-get下载爱奇艺视频

图片发自App

必须依赖

Pyhon3
FFmpeg

首先安装termux并打开

Termux下载地址

安装Python3

pkg install python3

安装FFmpeg

pkg install ffmpeg

所有工作准备完毕 然后在Termux输入

-安装you-get
pip3 install you-get

开始

当观赏感兴趣之视频,您可以使用 --info/-i以查看所有可用画质与格式

you-get -i http://m.iqiyi.com/v_19rr8ldjj8.html
site:                爱奇艺 (Iqiyi)
title:               会长的贴身校花
streams:             # Available quality and codecs
    [ DEFAULT ] _________________________________
    - format:        BD
      container:     m3u8
      video-profile: 1080p
      m3u8_url:      http://cache.m.iqiyi.com/mus/747376200/c2704d5d61c48cc9c1966505519b300a/afbe8fd3d73448c9/1023108576/20170804/cd/08/4bded7f0eabf4acbe253fd12090ba371.m3u8?qd_originate=tmts_py&tvid=747376200&bossStatus=2&qd_vip=0&px=&qd_src=3_31_312&prv=1&previewType=1&previewTime=6&from=&qd_time=1502276510565&qd_p=3af3fa54&qd_asc=47c1009eb9100e03eb898c4d92f2951b&qypid=747376200_04022000001000000000_5&qd_k=a0a580731271398ad8880c6ff6d6b10b&vf=7d3f9ac8a6813b523d261b824a1f7cb1&np_tag=nginx_part_tag
    # download-with: you-get --format=BD [URL]

    - format:        TD
      container:     m3u8
      video-profile: 720p
      m3u8_url:      http://cache.m.iqiyi.com/mus/747376200/2baa0e5f915fe5c41a5dabe033e87c30/afbe8fd3d73448c9/1023108576/20170804/ed/66/e1510a1583420c86ebea9e53486a5e36.m3u8?qd_originate=tmts_py&tvid=747376200&bossStatus=2&qd_vip=0&px=&qd_src=3_31_312&prv=1&previewType=1&previewTime=6&from=&qd_time=1502276510565&qd_p=3af3fa54&qd_asc=d56b67bb53a4efc56a335b044d7d5771&qypid=747376200_04022000001000000000_4&qd_k=a0a580731271398ad8880c6ff6d6b10b&vf=172b25565a0f7983a839982dff89b92d&np_tag=nginx_part_tag
    # download-with: you-get --format=TD [URL]

    - format:        HD
      container:     m3u8
      video-profile: 540p
      m3u8_url:      http://cache.m.iqiyi.com/mus/747376200/cccd114f22c5865448ec29f1aa03b019/afbe8fd3d73448c9/1023108576/20170804/9a/16/c29f62804e0eaab58db508850d5962e3.m3u8?qd_originate=tmts_py&tvid=747376200&bossStatus=2&qd_vip=0&px=&qd_src=3_31_312&prv=1&previewType=1&previewTime=6&from=&qd_time=1502276510565&qd_p=3af3fa54&qd_asc=7b0fa98aa44db65077dad57ed8bd628a&qypid=747376200_04022000001000000000_2&qd_k=a0a580731271398ad8880c6ff6d6b10b&vf=8cd21a35e522e48128f7a67f1c528acb&np_tag=nginx_part_tag
    # download-with: you-get --format=HD [URL]

    - format:        SD
      container:     m3u8
      video-profile: 360p
      m3u8_url:      http://cache.m.iqiyi.com/mus/747376200/6f081dbc8e06a169a6ec5b7f7f77bea4/afbe8fd3d73448c9/1023108576/20170804/bf/c2/7a9dec56b868b9ee6f42f174bb49cccb.m3u8?qd_originate=tmts_py&tvid=747376200&bossStatus=2&qd_vip=0&px=&qd_src=3_31_312&prv=1&previewType=1&previewTime=6&from=&qd_time=1502276510565&qd_p=3af3fa54&qd_asc=577f448dcac4a95b62ef2a7de6161edf&qypid=747376200_04022000001000000000_1&qd_k=a0a580731271398ad8880c6ff6d6b10b&vf=9e9cb1b2cb7eb14009987a05fa364b8c&np_tag=nginx_part_tag
    # download-with: you-get --format=SD [URL]

    - format:        LD
      container:     m3u8
      video-profile: 210p
      m3u8_url:      http://cache.m.iqiyi.com/mus/747376200/f666d7cc6eac76a12fb75096f48c779e/afbe8fd3d73448c9/1023108576/20170804/67/f3/1009ebd3290353b00d78859f2e283249.m3u8?qd_originate=tmts_py&tvid=747376200&bossStatus=2&qd_vip=0&px=&qd_src=3_31_312&prv=1&previewType=1&previewTime=6&from=&qd_time=1502276510565&qd_p=3af3fa54&qd_asc=3f9f81989e469bb64e9f0dcd131d427a&qypid=747376200_04022000001000000000_96&qd_k=a0a580731271398ad8880c6ff6d6b10b&vf=55323533b1bb293df55e586a7bb09a75&np_tag=nginx_part_tag
    # download-with: you-get --format=LD [URL]

设置输出文件名或路径

使用--output-dir/-o 设定路径,--output-filename/-O设定输出文件名:

you-get -o /storage/emulated/0/ -O a.mp4 http://m.iqiyi.com/v_19rr8ldjj8.html

or 保持原有的文件名

you-get -o /storage/emulated/0/ http://m.iqiyi.com/v_19rr8ldjj8.html

大功告成,下载完成后就会在sdcard根目录生成视频

本文参考链接

你可能感兴趣的:(you-get下载爱奇艺视频)