Windows
如果你能夠清晰的區分
shell
與Terminal
的區別,可以跳過一下 0.* 章的內容
0.1 首先我們來做一點準備工作
- 進入 windows 自帶的 terminal
- 點擊 windows 的開始(雖說這貨一直都是結束??)
- 在彈出菜單的底部會有一個輸入框(不同版本的樣式會有一定差異),點擊使之獲取焦點
OSX / Linux
安利一款 OSX 下極好用的終端, iTerm2
錄制單個頻道視頻
basicUrl = http://3811.liveplay.myqcloud.com/live/flv/3811_channel344.flv
通過對比不同頻道的 URL 我們發現其中 344
為頻道的 index
下載單個視頻到本地
以成年園B為例: 成年園B的 index 為 344
set -l d (date "+%Y-%m-%d");
set -l index "349";
set -l name $d"-幼年園A";
wget -t 0 -w 5 -c -O ~/Desktop/"$name".flv "http://3811.liveplay.myqcloud.com/live/flv/3811_channel$index.flv";
如果這時候你的桌面上出現了一個 YYYY-MM-DD.flv
(以今天為例 2017-10-16.flv )那么你已經成功了
Others
其中 index 就是 flv 前面的三位數字,我們將其爬起下來并轉換為 json
index & channel json
[
{
"index": "339",
"channel": "成年園A",
"title": "成都直播"
},
{
"index": "344",
"channel": "成年園B",
"title": "成都直播"
},
{
"index": "349",
"channel": "幼年園A",
"title": "成都直播"
},
{
"index": "354",
"channel": "幼年園B",
"title": "成都直播"
},
{
"index": "349",
"channel": "幼兒園A",
"title": "成都直播"
},
{
"index": "364",
"channel": "幼兒園B",
"title": "成都直播"
},
{
"index": "369",
"channel": "母子園A",
"title": "成都直播"
},
{
"index": "374",
"channel": "母子園B",
"title": "成都直播"
},
{
"index": "379",
"channel": "1號別墅A",
"title": "成都直播"
},
{
"index": "384",
"channel": "1號別墅B",
"title": "成都直播"
},
{
"index": "429",
"channel": "雅安基地幼兒園",
"title": "臥龍直播"
},
{
"index": "394",
"channel": "大熊貓\"寶寶\"",
"title": "臥龍直播"
},
{
"index": "399",
"channel": "大熊貓“青青”“冰冰”",
"title": "臥龍直播"
},
{
"index": "404",
"channel": "大熊貓“泰山”",
"title": "臥龍直播"
},
{
"index": "409",
"channel": "大熊貓“森森”",
"title": "臥龍直播"
},
{
"index": "414",
"channel": "大熊貓“英英”",
"title": "臥龍直播"
},
{
"index": "419",
"channel": "大熊貓“戴麗”",
"title": "臥龍直播"
},
{
"index": "434",
"channel": "核桃坪",
"title": "臥龍直播"
},
{
"index": "424",
"channel": "臭水",
"title": "臥龍直播"
},
{
"index": "484",
"channel": "雅安碧峰峽新豹子山",
"title": "臥龍直播"
}
]