Skip to content

TeamBipartite/courpass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

academic-calendar-scraper

Build Status

Django webserver

To launch the Django server for local development, navigate to the academic_calendar_scraper/academic_calendar_scraper directory. You can verify you are in the correct directory by ensuring there is a file called manage.py. From there, you can run the following command:

$ python manage.py runserver

The above command with output some status information. You will likely see a message regarding "18 unapplied migration(s)," as mentioned in the docs here; they can be ignored at this time.

You will find the server running here; note, the local development url is also given as part of the above command's output.

Command-line usage

Within the root directory, there is a main.py file which can be used to generate a text-based prereqsuite grid. Basic usage is as follows:

$ python3 -O main.py <LIST_OF_COURSES_TO_SEARCH> <LIST_OF_PREREQS_TO_FIND>

where LIST_OF_COURSES_TO_SEARCH and LIST_OF_PREREQS_TO_FIND are comma-separated lists. For example:

$ python3 -O main.py CSC360,CSC361,CSC370,CSC421,MATH100,MATH346 CSC226,SENG265,CSC230,ECE255,MATH204,MATH200
Prereq of: CSC360*    CSC361   CSC370*   CSC421⁴   MATH100+  MATH346  
    CSC226    ✗         ✗         ✗         ✓         ✗         ✗     
   SENG265    ✓         ✓         ✓         ✗         ✗         ✗     
    CSC230    ✓¹        ✓²        ✗         ✗         ✗         ✗     
    ECE255    ✓¹        ✓²        ✗         ✗         ✗         ✗     
   MATH204    ✗         ✗         ✗         ✗         ✗        ✓³¹    
   MATH200    ✗         ✗         ✗         ✗         ✗        ✓³⁰    
-----------
Header legend:
     ²³⁴⁵: Minimum year standing required.
        *: Not all prereqs shown. See calendar for details.
        +: Or department permission.
-----------
Grid legend:
        1: Any 1 of these. Not all courses in this group shown. See calendar for details.
        2: Any 1 of these. Not all courses in this group shown. See calendar for details.
        3: Any 1 of these.
              3 0: All of these. Not all courses in this group shown. See calendar for details.
              3 1: All of these.

To enable debuging output, remove the -O argument from the launch command.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published