- Run this repo from mybinder.com and execute run.py (by python ./run.py)
-
For macOS users:
- Open the terminal (Press space + command and search "terminal")
- Get to the directory where the repo is located by typing "cd" in the terminal. Ex: "cd /Users/(username)/Documents/proj"
- Activate the virtual environment by typing "source penv/bin/activate" in the terminal.
- Execute the python script run.py by "python run.py
-
For Windows Users:
- Open the PowerShell (Press Windows + R and search "powershell")
- Get to the directory where the repo is located by typing "cd" in the powershell. Ex: "c:\Users(username)\Documents\proj201"
- Activate the virtual environment by typing "./penv/bin/Activate.ps1" in the powershell. If doesn't allow look up online how to allow powershell to run remote scripts online.
- Execute the python script run.py by "python run.py
- Change the html file in "files/" with the catalog you want to work with. (Do not forget to name it "catalog.html". You can change the default names and directory from the environment variables inside "parser.py")
- Change the variable inside the displayDicts inside the "scripts/root.py" with the below variables to change the output of the file
- catalog_dict # Catalog without any alterations
- catalog_dict2 # Catalog with looping prerequisites removed
- catalog_dict_with_ghosts # Catalog with redundancies removed
- catalog_dict_without_ghosts # Catalog with prerequisites that does not exist removed
- syntax_errors # Courses with prerequisites with broken syntax
- ghost_errors # Courses that are unable to be taken without ghost courses
-
Function: Scrap data from a html file
-
External Libraries Used:
- BeautifulSoup4,
- requests
-
Default Environment Variables:
- FILE_DIR = "beta/files",
- FILE_NAME = "catalog.html",
- LINK_FILTER = "https://suis.sabanciuniv.edu/prod/bwckctlg.p_disp_course_detail"
- PICKLE_NAME = "course_list"
-
Function: Algorithms for logical operations
-
External Libraries Used:
- SymPy
-
Function: Main module
-
Local Modules Used:
- "parser.py"
- "logic.py"
- "parser.py" - İlhan Yavuz İskurt
- "logic.py" - İlhan Yavuz İskurt & Muslim Malsagov
- "root.py" - İlhan Yavuz İskurt
"parser.py" is based and improved upon "kkkk.py" which was written by Mete Harun Akçay (meteharun@sabanciuniv.edu)