相信大家都有這樣的經歷,想在視頻網站下載視頻到本地,但是電腦上下載限制很多,以前有很多視頻嗅探工具,如碩鼠,維棠,但是現在都無效了。這裡推薦一款下載神器:Annie
使用過的you-get和youbute-get的人對這個工具應該挺好上手,它使用go語言搭建,使用命令行操作,windows,linux,Mac三平臺均可使用,速度快支持網站多。
Github地址:https://github.com/iawia002/annie
安裝:
Mac用戶直接brew install annie即可
windows用戶:
1. 升級PowerShell
2.安裝scoop
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
3.使用scoop安裝Annie,
scoop install annie
使用:
annie [OPTIONS] URL [URL...]
Options -i Information only -F string URLs file path -d Debug mode -j Print extracted data -v Show version
Download: -f string Select specific stream to download -p Download playlist -n int The number of download thread (only works for multiple-parts video) (default 10) -c string Cookie -r string Use specified Referrer -cs int HTTP chunk size for downloading (in MB) (default 0)
Network: -s string SOCKS5 proxy -x string HTTP proxy -retry int How many times to retry when the download failed (default 10)
Playlist: -start int Playlist video to start at (default 1) -end int Playlist video to end at -items string Playlist video items to download. Separated by commas like: 1,5,6
Filesystem: -o string Specify the output path -O string Specify the output file name
Subtitle: -C Download captions
Youku: -ccode string Youku ccode (default "0590") -ckey string Youku ckey (default "7B19C0AB12633B22E7FE81271162026020570708D6CC189E4924503C49D243A0DE6CD84A766832C2C99898FC5ED31F3709BB3CDD82C96492E721BDD381735026") -password string Youku password
YouTube -ytb-stream2 Use data in url_encoded_fmt_stream_map
Aria2: -aria2 Use Aria2 RPC to download -aria2addr string Aria2 Address (default "localhost:6800") -aria2method string Aria2 Method (default "http") -aria2token string Aria2 RPC Token需要vip的視頻可以登錄之後F12查看cookies然後保存為文件,用annie -c cookies.txt '視頻網址' 下載。