macOS 安装 you-get 下载视频

下载截图

macOS 安装 you-get 下载视频

1.安装 Homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

2.安装 you-get

brew install you-get

3.安装 FFmpeg

brew install ffmpeg

you-get  基本操作命令:

usage: you-get [OPTION]... URL...

A tiny downloader that scrapes the web

optional arguments:
  -V, --version  Print version and exit   #显示版本并退出
  -h, --help  Print this help message and exit   #显示基本命令

Dry-run options:  (no actual downloading)   #空运行/预检操作(没有实际下载内容)

  -i, --info  Print extracted information   #显示提取下载信息
  -u, --ur  Print extracted information with URLs   #获得页面所有可下载URL列表
  --json  Print extracted URLs in JSON format   #获得以JSON格式的页面所有可下载信息

Download options:   #下载选项

  -n, --no-merge   Do not merge video part   #不合并视频
  --no-caption   Do not download captions (subtitles, lyrics, danmaku,...)   #不下载其他文件(字幕,歌词,弹幕等)
  -f, --force   Force overwriting existing files   #覆盖存在的文件
  --skip-existing-file-size-check   Skip existing file without checking file size   #
  -F STREAM_ID, --format STREAM_ID   Set video format to STREAM_ID   #选择下载哪种清晰度的视频

  -O FILE, --output-filename FILE   Set output filename   #设定输出文件名
  -o DIR, --output-dir DIR   Set output directory   #设定输出路径
  -p PLAYER, --player PLAYER   Stream extracted URL to a PLAYER   #将提取的真实地址传给播放器
  -c COOKIES_FILE, --cookies COOKIES_FILE   Load cookies.txt or cookies.sqlite   #导入cookies.txt或cookies.sqlite(firefox下使用export-cookies插件)
  -t SECONDS, --timeout SECONDS   Set socket timeout   #设置代理的timeout
  -d, --debug   Show traceback and other debug info   #显示traceback和其他的debug信息
  -I FILE, --input-file FILE   Read non-playlist URLs from FILE   #仅下载链接的视频不下载列表
  -P PASSWORD, --password PASSWORD   Set video visit password to PASSWORD   #
  -l, --playlist   Prefer to download a playlist   #下载列表
  -a, --auto-rename   Auto rename same name different files   #
  -k, --insecure   ignore ssl errors   #

Proxy options:    #代理选项

  -x HOST:PORT, --http-proxy HOST:PORT   Use an HTTP proxy for downloading   #使用HTTP代理下载
  -y HOST:PORT, --extractor-proxy HOST:PORT   Use an HTTP proxy for extracting only   #仅对真实地址视频文件的下载使用HTTP代理
  --no-proxy   Never use a proxy   #不使用代理
  -s HOST:PORT, --socks-proxy HOST:PORT   Use an SOCKS5 proxy for downloading   #使用SOCKS5协议代理

4.下载 B 站视频:

查看视频格式信息:

you-get -i https://www.bilibili.com/video/av47980227/

输出:

you-get -i https://www.bilibili.com/video/av47980227/                                                                                ✔
site:                Bilibili
title:               iphone7拆机视频教学
streams:             # Available quality and codecs
    [ DASH ] ____________________________________
    - format:        dash-flv480
      container:     mp4
      quality:       清晰 480P
      size:          53.3 MiB (55908950 bytes)
    # download-with: you-get --format=dash-flv480 [URL]

    - format:        dash-flv720
      container:     mp4
      quality:       高清 720P
      size:          53.2 MiB (55831127 bytes)
    # download-with: you-get --format=dash-flv720 [URL]

    - format:        dash-flv360
      container:     mp4
      quality:       流畅 360P
      size:          27.0 MiB (28326713 bytes)
    # download-with: you-get --format=dash-flv360 [URL]

    [ DEFAULT ] _________________________________
    - format:        flv720
      container:     flv
      quality:       高清 720P
      size:          72.1 MiB (75597467 bytes)
    # download-with: you-get --format=flv720 [URL]

    - format:        flv480
      container:     flv
      quality:       清晰 480P
      size:          72.1 MiB (75633743 bytes)
    # download-with: you-get --format=flv480 [URL]

    - format:        flv360
      container:     flv
      quality:       流畅 360P
      size:          36.7 MiB (38458470 bytes)
    # download-with: you-get --format=flv360 [URL]

5.下载 B 站视频:

you-get --format=dash-flv720 -o /Users/drixn/Downloads/youget https://www.bilibili.com/video/av47980227/

输出:

you-get --format=dash-flv720 -o /Users/drixn/Downloads/youget https://www.bilibili.com/video/av47980227/                             ✔
site:                Bilibili
title:               iphone7拆机视频教学
stream:
    - format:        dash-flv720
      container:     mp4
      quality:       高清 720P
      size:          53.2 MiB (55831127 bytes)
    # download-with: you-get --format=dash-flv720 [URL]

Downloading iphone7拆机视频教学.mp4 ...
 100% ( 53.2/ 53.2MB) ├████████████████████████████████████████████████████████████████████████████████████████████████████┤[2/2]   11 MB/s
Merging video parts... Merged into iphone7拆机视频教学.mp4

Downloading iphone7拆机视频教学.cmt.xml ...

6.下载 腾讯视频:

you-get -i https://v.qq.com/x/page/o0514n4g0o6.html

输出:

you-get -i https://v.qq.com/x/page/o0514n4g0o6.html                                                                                  ✔
Site:       QQ.com
Title:      BBC纪录片拍到抹香鲸吞食塑料桶 号召人们保护环境
Type:       MPEG-4 video (video/mp4)
Size:       2.13 MiB (2229901 Bytes)

7.you-get支持的网站:

网站 链接 视频? 图片? 音频?
YouTube https://www.youtube.com/    
Twitter https://twitter.com/  
VK http://vk.com/  
Vine https://vine.co/    
Vimeo https://vimeo.com/    
Veoh http://www.veoh.com/    
Tumblr https://www.tumblr.com/
TED http://www.ted.com/    
SoundCloud https://soundcloud.com/    
SHOWROOM https://www.showroom-live.com/    
Pinterest https://www.pinterest.com/    
MTV81 http://www.mtv81.com/    
Mixcloud https://www.mixcloud.com/    
Metacafe http://www.metacafe.com/    
Magisto http://www.magisto.com/    
Khan Academy https://www.khanacademy.org/    
Internet Archive https://archive.org/    
Instagram https://instagram.com/  
InfoQ http://www.infoq.com/presentations/    
Imgur http://imgur.com/    
Heavy Music Archive http://www.heavy-music.ru/    
Freesound http://www.freesound.org/    
Flickr https://www.flickr.com/  
FC2 Video http://video.fc2.com/    
Facebook https://www.facebook.com/    
eHow http://www.ehow.com/    
Dailymotion http://www.dailymotion.com/    
Coub http://coub.com/    
CBS http://www.cbs.com/    
Bandcamp http://bandcamp.com/    
AliveThai http://alive.in.th/    
interest.me http://ch.interest.me/tvn    
755
ナナゴーゴー
http://7gogo.jp/  
niconico
ニコニコ動画
http://www.nicovideo.jp/    
163
网易视频
网易云音乐
http://v.163.com/
http://music.163.com/
 
56网 http://www.56.com/    
AcFun http://www.acfun.cn/    
Baidu
百度贴吧
http://tieba.baidu.com/  
爆米花网 http://www.baomihua.com/    
bilibili
哔哩哔哩
http://www.bilibili.com/
豆瓣 http://www.douban.com/  
斗鱼 http://www.douyutv.com/    
凤凰视频 http://v.ifeng.com/    
风行网 http://www.fun.tv/    
iQIYI
爱奇艺
http://www.iqiyi.com/    
激动网 http://www.joy.cn/    
酷6网 http://www.ku6.com/    
酷狗音乐 http://www.kugou.com/    
酷我音乐 http://www.kuwo.cn/    
乐视网 http://www.le.com/    
荔枝FM http://www.lizhi.fm/    
秒拍 http://www.miaopai.com/    
MioMio弹幕网 http://www.miomio.tv/    
MissEvan
猫耳FM
http://www.missevan.com/    
痞客邦 https://www.pixnet.net/    
PPTV聚力 http://www.pptv.com/    
齐鲁网 http://v.iqilu.com/    
QQ
腾讯视频
http://v.qq.com/    
企鹅直播 http://live.qq.com/    
Sina
新浪视频
微博秒拍视频
http://video.sina.com.cn/
http://video.weibo.com/
   
Sohu
搜狐视频
http://tv.sohu.com/    
Tudou
土豆
http://www.tudou.com/    
虾米 http://www.xiami.com/  
阳光卫视 http://www.isuntv.com/    
音悦Tai http://www.yinyuetai.com/    
Youku
优酷
http://www.youku.com/    
战旗TV http://www.zhanqi.tv/lives    
央视网 http://www.cntv.cn/    
Naver
네이버
http://tvcast.naver.com/    
芒果TV http://www.mgtv.com/    
火猫TV http://www.huomao.com/    
阳光宽频网 http://www.365yg.com/    
西瓜视频 https://www.ixigua.com/    
新片场 https://www.xinpianchang.com//    
快手 https://www.kuaishou.com/  
抖音 https://www.douyin.com/    
TikTok https://www.tiktok.com/    
中国体育(TV) http://v.zhibo.tv/
http://video.zhibo.tv/
   
知乎 https://www.zhihu.com/    

 

本文作者:Drixn

本文链接:https://www.drixn.com/2291.html

版权申明:本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!

发表评论

电子邮件地址不会被公开。 必填项已用*标注