This repository has been archived by the owner on Jun 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
9 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
node_modules | ||
userConf.yml | ||
eng.traineddata | ||
*.traineddata | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,6 @@ | |
<h3 align="center">campushpere-auth-simplified</h3> | ||
</p> | ||
|
||
|
||
## About | ||
|
||
**campushpere-auth-simplified** 使用交互式的配置程序,实现了学工系统的登录 | ||
|
@@ -23,7 +22,7 @@ | |
1. 安装此项目 | ||
|
||
```sh | ||
git clone https://git.io/JL4oc | ||
git clone https://github.com/beetcb/campushpere-auth-simplified.git | ||
cd campushpere-auth-simplified && chmod +x init.js | ||
npm i | ||
``` | ||
|
@@ -40,7 +39,6 @@ npm i | |
|
||
```sh | ||
./init.js -u | ||
|
||
``` | ||
|
||
- 使用文件配置用户: 根目录下创建 `userConf.yml`, 参考以下示例: | ||
|
@@ -61,14 +59,15 @@ npm i | |
```sh | ||
node index.js | ||
``` | ||
|
||
3. 扩展: | ||
|
||
注意: 只需要引入 `crawler/casLogin.js` 作为模块即可获得验证 cookie 信息对象,含 `swms` 和 `campusphere` 参数,分别对应 学工 和 金智教务(今日校园相关) 验证凭据 | ||
|
||
|
||
## Features | ||
|
||
- 交互式配置: `campushpere-awesome-auth` 提供交互式的命令行完成 用户 及 学校 的配置,同时也支持使用 `yml` 文件来配置 | ||
|
||
- 验证持久化: 缓存验证信息于内存, 只在失效时更新 | ||
|
||
## Thanks | ||
|
@@ -77,6 +76,6 @@ node index.js | |
|
||
## Disclaimer | ||
|
||
`campushpere-auth-simplified` 用于学习和研究 NodeJs,请勿商用或非法使用。 | ||
`campushpere-auth-simplified` 用于学习和研究 NodeJS,请勿商用或违法使用。 | ||
|
||
> 作者: [`beetcb`](https://www.beetcb.com), 邮箱: `[email protected]` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.