How tom1030507/ncu_course_selection_helper works
Project type and purpose
• This is a lightweight Python-based course‐selection helper (open-source CLI/notebook tool) that pulls enrollment data from NCU’s course system, computes per-wish cumulative counts and allocation probabilities, and presents the results in the console or Jupyter notebook.
Main components
a. User layer
• Student / end-user interacting via terminal or Colab notebook
b. Application layer
• NCU_Course_Selection_Helper.py – core Python script implementing data retrieval, parsing, calculation, and output
• ncu_course_selection_helper.ipynb – Jupyter front end in Colab for interactive runs
c. External system
• NCU Course Selection Web System (HTTP API/HTML pages)
d. Libraries/Dependencies
• HTTP client (e.g., requests)
• HTML parser (e.g., BeautifulSoup)
• Data processing (e.g., pandas or built-ins)
e. Data flow / persistence
• Input: user-supplied course IDs (course_numbers)
• Output: console or notebook tables, probability reports
• Optional local storage (e.g., saving snapshots on disk or cloud)
Relationships and interactions
• The user invokes the script or notebook → The tool issues HTTP GET requests to NCU’s selection pages → Receives HTML → Parser extracts “cumulative students” and “seat limits” → Probability calculator computes allocation odds per wish position → Results are returned to the user interface (terminal or notebook) → Optionally write results to local file (e.g., JSON/CSV)
Architectural patterns and design principles
• Simple linear pipeline: Input → Fetch → Parse → Compute → Output
• Separation of concerns:
• Networking module (HTTP + retry logic)
• Parsing module (HTML→structured data)
• Calculation module (probability formulas)
• Presentation module (CLI print or Jupyter display)
• Extensibility point: Add new data sources or custom output formats by plugging into the pipeline
• Clear component labels (e.g., “HTTP Client”, “HTML Parser”)
• Optional inset showing Colab badge → Notebook environment