Skip to content

Python project that helps you to fetch your class schedule from BinusMaya and exports it to a CSV file that can be imported to Google Calendar. You can also choose to push the schedule directly to Google Calendar, Notion and MongoDB using their respective APIs.

Notifications You must be signed in to change notification settings

radityaharya/binusmaya_tools

Repository files navigation

NewBinusmaya Tools

Python project that helps you to fetch your class schedule from BinusMaya and exports it to a CSV file that can be imported to Google Calendar. You can also choose to push the schedule directly to Google Calendar, Notion and MongoDB using their respective APIs.

This project also allows you to download powerpoint files from all of your classes.

a web interface is available at: https://sunib.otid.site/tool

Usage

Install requirements by running

pip install -r requirements

Base Usage:

  • Login to https://newbinusmaya.binus.ac.id
  • Open inspect by pressing CTRL+SHIFT+i or CMD+SHIFT+i
  • Switch to the Network Tab
  • Refresh the page
  • Filter by Fetch/XHR
  • Select item from the Activity Log
  • Open the “Headers” tab
  • View source on “Request Headers”
  • Copy the values to .env
ROLEID = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
TOKEN = "xxxxxxxxxxxxxxxxxx..." 
  • Run schedule_fetcher.py
  • Import gcal_... .csv to Google Calendar

Uploading directly to Google Calendar:

  • Make sure you have run schedule_fetcher.py
  • Follow this guide to obtain your OAuth credentials
  • Input your email or Calendar ID in the .env file
  • run push_to_gcal.py

Uploading to notion:

  • Make sure you have run schedule_fetcher.py
  • Duplicate this page
  • Populate “Courses” with courses name (has to be exactly the same as course name in newbinusmaya)
  • Populate “Class” with the format “XXYY - LAB” etc.
  • Get your Integration token by following the Step 1 in this doc
  • Input your token and database name in the .env file
  • Run push_to_notion.py

Uploading to MongoDB:

  • pretty sure you know how 🙂

Downloading Powerpoint files:

  • Make sure you have run schedule_fetcher.py
  • Run pptDownloader.py

About

Python project that helps you to fetch your class schedule from BinusMaya and exports it to a CSV file that can be imported to Google Calendar. You can also choose to push the schedule directly to Google Calendar, Notion and MongoDB using their respective APIs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published