Skip to content

Instantly share code, notes, and snippets.

View TangliziGit's full-sized avatar
🌰
幸せになっています

Chunxu Zhang TangliziGit

🌰
幸せになっています
View GitHub Profile
@TangliziGit
TangliziGit / 📊 Weekly development breakdown
Last active October 29, 2020 00:19
Weekly development breakdown
XML 2 hrs 13 mins █████████▉░░░░░░░░░░░ 47.1%
Java 1 hr 44 mins ███████▊░░░░░░░░░░░░░ 37.0%
Markdown 33 mins ██▍░░░░░░░░░░░░░░░░░░ 11.7%
YAML 10 mins ▊░░░░░░░░░░░░░░░░░░░░ 3.6%
HTML 1 min ░░░░░░░░░░░░░░░░░░░░░ 0.5%
@TangliziGit
TangliziGit / main.js
Created September 13, 2021 07:14
Course Selecting Script
const superagent = require("superagent");
const nodemailer = require("nodemailer");
const cookie = ''
const pageUrl = "https://yjsxk.nju.edu.cn/yjsxkapp/sys/xsxkapp/xsxkCourse/loadFanCourseInfo.do"
const addLessonUrl = "https://yjsxk.nju.edu.cn/yjsxkapp/sys/xsxkapp/xsxkCourse/choiceCourse.do";
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 courseID = "";
const token = "";