Skip to content

yasuo-ozu/coursecompass-fetch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CourseCompass-Fetch

This is a helper software for Course Compass, which fetch syllabus data from Waseda university server.

How to fetch data

# 0. Initialize
npm init

# 1. Search Gakubu you want to fetch
node app searchGakubu 基幹理工

#    Or list all Gakubu(s)
node app listGakubu

# 2. Get Page ID(pid)s to get clas details
node app fetchGakubu 111973 > dest/g_111973.txt

# 3. Preview JSON output
node app fetchClass 2600001002012017260000100226

# 4. dump all data
cat dest/g_111973.txt | node app fetchClass - > dest/o_111973.json

How to apply data

find dest/o_* | xargs node converter >> dest/mongo_all.json
mongoimport --db coursecompass --collection classes --file mongo_all.json

Important

  • Only Admin users of Course Compass can apply some data.
  • Applying data will immediately affect to all users in Course Compass.
  • Being Admin:
  1. Respect the privacy of others.
  2. Think before you type.
  3. With great power comes great responsibility.
  4. Our purpose is neither cheating nor defeating the university---because we love Waseda university. Respect all of the staffs and understand the goal of education.

About

Syllabus fetching software for Course Compass

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%