Skip to content

baizhi958216/FetchCET4-6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

四六级成绩查询

初始化环境

  1. 安装依赖:pnpm i

  2. src/assets/stu.json填入姓名,身份证

    src/assets/stu.json:

    [
      { "示例1": "xxxxxxxxxxxxxxxxxx" },
      { "示例2": "xxxxxxxxxxxxxxxxxx" },
      { "示例3": "xxxxxxxxxxxxxxxxxx" }
    ]

使用方法

src/app.ts写入:

  • 四级: ILevel.CET4
  • 六级: ILevel.CET6
import { writeFile } from "fs";
import { FetchResult } from "./FetchResult";
import stuJson from "./assets/stu.json";
import { ILevel } from "./result.interface";

new FetchResult(stuJson).getResult(ILevel.CET4).then((res) => {
  const jsonArray = JSON.stringify(res);
  writeFile("成绩.json", jsonArray, (err) => {
    if (err) throw err;
    console.log("SUCCESS");
  });
});

运行

pnpm start

目录下生成成绩.json

About

大学英语四六级成绩查询

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published