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
const superagent = require("superagent"); | |
const fs = require('fs'); | |
const pageUrl = "https://jw.ustc.edu.cn/for-std/course-select/352169/turn/481/select"; | |
const userAgent = "USER_AGENT = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36'"; | |
const addLessonUrl = 'https://jw.ustc.edu.cn/ws/for-std/course-select/add-request'; | |
const cookiePromise = new Promise((res, rej) => { | |
fs.readFile('./config.json', (err, data) => { | |
if (err) rej(err); | |
else res(data) |
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
C++ 2 mins █████████████████████ 100.0% |