https://github.com/moo-w/ucloud-homework-backup-selenium
https://github.com/moo-w/ucloud-homework-backup-selenium
cli esm javascript nodejs selenium selenium-javascript
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/moo-w/ucloud-homework-backup-selenium
- Owner: moo-w
- License: mit
- Created: 2023-04-27T12:36:42.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-05T11:20:47.000Z (over 2 years ago)
- Last Synced: 2025-05-17T06:11:25.657Z (7 months ago)
- Topics: cli, esm, javascript, nodejs, selenium, selenium-javascript
- Language: JavaScript
- Homepage:
- Size: 239 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ucloud-homework-backup-selenium
备份 ucloud 上的学生作业。
## 使用方式
### npm 全局安装
```shell
npm i -g ucloud-bkp
ucloud-bkp
```
### clone 到本地使用
#### 准备工作
在项目最上层录下创建 `.env` 文件,文件中需要包含以下字段:
```shell
USERNAME = '202XXXXXX'
PASSWORD = 'XXXXXXXXX'
DOWNLOAD_PATH = '/Users/xxxxx/Downloads/ucloud'
```
分别表示学号、密码、下载路径。
#### 运行
```shell
npm run prod # 生产环境
npm run dev # 开发环境
```
#### 调整
用户可以根据实际情况对 `src/constant/index.js` 中的参数进行调整,自行把握容错率和运行速度。
```js
export const DEFAULT_DELAY_TIME = 500
export const DOWNLOAD_WAITING_TIME = 2000
```