Skip to content

Instantly share code, notes, and snippets.

View JialuGong's full-sized avatar
❤️
Coding out of love 🥰

Gong Jialu JialuGong

❤️
Coding out of love 🥰
View GitHub Profile
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)
C++ 2 mins █████████████████████ 100.0%