node main.js <host> <port> <protocol> <topic> <msg>
example:
node main.js localhost 1883 ws UPDATE_NAME "hello world"
- 获取指定路径的所有文件信息
- 查账文件
- 统计没有添加序号前缀和序号不连续的文件名
npx ts-node index.ts
运行程序自动在家目录创建 crawler-script/config.json
存储配置文件
{
"cookie": "",
"customFindPath": ""
}
复制 ./index.ts
的代码到控制台执行,即可获取字符串。
- 视频窗口化全屏控件
将 web
目录中的脚本,复制粘贴到 console
控制台执行。
可以使用油猴之类的插件,自动执行脚本。
[✅] 章节演练 选择题/应用题
[✅] 历史真题 选择题/应用题
配置 config/index.ts
文件中 daniu
中的 token
执行 index.ts
脚本爬取数据到 output
目录
修改 api/yueShiJiaoYu.ts
中的 Cookie
修改 index.ts
里面的 subcourseId
为对应科目的 id 号
执行 index.ts
接着在 output
中查看结果
- 修改
api/kongGeJiaoYu.ts
中的token
参数 - 修改
getHomeworkDetail()
函数中的id
参数 - 执行
ts-node src/scripts/kongGeJiaoYu/index.ts
- 在
output
中,查看结果
- ✅ 自动播放,并跳过片头(需要手动设置片头时间)
- ✅ ctrl + n 下一集
- ✅ ctrl + shift + n 上一集
- ✅ ctrl + p 暂停/播放