由于種種原因押赊,簡書等第三方平臺博客不再保證能夠同步更新,歡迎移步 GitHub:https://github.com/kingcos/Perspective/兼蕊。謝謝果正!
WWDCHelper
開源及下載地址:https://github.com/kingcos/WWDCHelper,歡迎 Star ??忆谓。
Date | Notes | Swift | Xcode |
---|---|---|---|
2017-09-27 | 支持 WWDC 17 以及最新 Fall 2017(包含 iPhone X 新內(nèi)容) | 3.1 | 8.3.3 |
受 qiaoxueshi/WWDC_2015_Video_Subtitle裆装,ohoachuck/wwdc-downloader,以及 @onevcat 的視頻啟發(fā)倡缠。感謝他們的靈感與努力哨免。??
簡介
WWDCHelper 是一個(gè) macOS 命令行工具,以便于獲取 WWDC 官方的資源£悸伲現(xiàn)在琢唾,你可以用它直接獲取 SD/HD 視頻和對應(yīng) PDF 文檔的鏈接,也可以直接下載英文或簡體中文的字幕盾饮。
當(dāng)然采桃,你也可以直接在 releases 頁面僅下載 WWDC 2017 或 Fall 2017 的所有字幕。
提示
雖然確實(shí)寫了幾年 Swift丘损,但仍有不足普办,仍有差距。加上對命令行程序的不太了解徘钥,可能該項(xiàng)目并非很好衔蹲,甚至有點(diǎn)怪異。如果您找到了問題呈础、或是建議舆驶、又或是 Bug,都?xì)g迎您提出 Issue而钞。我會非常感謝您的幫助沙廉。??
如何使用
安裝
您的 macOS 需要安裝了 Swift Package Manager,或者安裝了最新版本的 Xcode 并帶有命令行工具臼节。
> git clone https://github.com/kingcos/WWDCHelper.git
> cd WWDCHelper
> ./install.sh
運(yùn)行
> wwdchelper -h
Usage: WWDCHelper [options]
-y, --year:
Setup the year of WWDC. Support `WWDC2017` & `Fall2017` now. Default is WWDC 2017.
-s, --sessions:
Setup session numbers in WWDC. Default is all.
-l, --language:
Setup language of subtitle. Only support `chs` or `eng` now. Default is Simplified Chinese.
--sd:
Add sd tag for subtitle filename. Default is for hd.
-p, --path:
Setup download path of subtitles. Default is current folder.
-h, --help:
Print the help info.
-v, --version:
Print the version info.
Demo
- Update: 如果您需要獲取 Fall 2017 所有 Session 信息(包括視頻的下載鏈接):
> wwdchelper -y fall2017
- Update: 如果您需要下載 Fall 2017 所有英文字幕(目前官網(wǎng)暫未放出中文字幕):
# HD 視頻:
> wwdchelper -y fall2017 -l eng
or
# SD 視頻:
> wwdchelper -y fall2017 --sd -l eng
- 如果您僅需要 WWDC 2017 中 Session 102 和 202 的信息:
> wwdchelper -s 102 202
or
> wwdchelper -y 17 -s 102 202
or
> wwdchelper --year 2017 --sesions 102 202
- 如果您想要為 Session 102 和 202 的 SD(清晰度)視頻下載簡體中文字幕:
> wwdchelper -s 102 202 -l chs --sd
or
> wwdchelper --year 2017 --sessions 102 202 --language chs --sd
- 如果您想要為所有 Session 的 HD(清晰度)視頻下載簡體中文字幕蓝仲,并指定路徑(不推薦):
> wwdchelper -l chs -p /Users/kingcos/Downloads/hd/chs/
參考
許可
MIT