Skip to content

Latest commit

 

History

History

hw1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Data Aggregation

Getting Started

  • Create a package called hw1 under the qtm385 project.
  • Copy hw1.py under the hw1 package.
  • Copy html/ (including index.html) under the hw1 package.

Task 1

  • Update the generate_html_files function to generate one HTML file per program (e.g., QTM) under the html/ directory that displays the exam and class information together for that program:
    • Parse exam and class page. Try to match exams with classes based on the class meeting time on exam page.
    • Save each class with its schedule and exam information in a html file, e.g., qtm.html for this course. As you'll need to parse this html file again in task 2, please design a clear format to seperate each piece of information.
    • Once the HTML files are generated, all links in index.html should be active. You can open index.html in your browser to check whether those links are active or dead.
    • Feel free to use any contents in data_aggregation.ipynb.

Task 2

  • Update the print_exam_schedule function that takes a list of course IDs and prints the exam schedules of those courses:
    • The format of each course ID: <program><number>-<section> (e.g., QTM385-1).
    • The output format: (<day>, <date>, <time>) (e.g., ('Thursday', '2-May', '3:00 P.M - 5:30 P.M') ).
  • Feel free to use any contents in data_aggregation.ipynb.

Submission

  • Make sure that your hw1.py runs as expected before submitting.
    • Do not modify __main__; we will use this to test your program.
  • Add the hw1 package to git:
    • hw1/hw1.py
    • hw1/html/*.html
  • Commit and push your changes to Github.
  • Canvas: https://canvas.emory.edu/courses/57068/assignments/206291