Skip to content

shreykshah/CourseScraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CourseScraper

This program will pull up a window to UW-Madison's Course Search and Enroll, where you will log in and select the options you want (in the left bar). Then, it will sort all the courses selected by those options by adjusted average GPA and display it bottom to top.

Run the python script "scraper.py". A internet connection is required.

Will sort by adjusted GPA (Bayesian adjustment to prevent n-mu conflation), but will display actual GPA in output. If the GPAs seem out of order, it is because they have been adjusted in the sort.

Requires geckodriver (must be named "geckogriver"). MacOS version is provided for convenience. Confimed to support v0.24.0 although the latest version probably also works

Optional arguments:

  • -h, --help
    • Displays help on how to use program
  • -w [WRITE], --write [WRITE]
    • Write course codes to a file without sorting. Filename specification is optional.
  • -r [READ], --read [READ]
    • Read course codes from file and sort by GPA. Filename specification is optional.
  • -o [OUTPUT], --output [OUTPUT]
    • Output the final results to a file. Filename specification is optional.
  • -p [PRINT] [PRINT], --print [PRINT] [PRINT]
    • Print output again. Filename specification is optional. Can also specify max course code.

Examples:

  • python scraper.py -w
    • will display all courses sorted by adjusted average GPA and write the courses to the default write file
  • python scraper.py -w -o
    • will display all courses sorted by adjusted average GPA, write the courses to the default write file, and write all the sorted courses to the default output file
  • python scraper.py -r test_file.csv
    • will display all courses read from test_file.csv sorted by adjusted average GPA
  • python scraper.py -p 400
    • will display all courses under the 400 level sorted by adjusted average GPA
  • python scraper.py -p out_file.csv 400
    • will display all courses under the 400 level sorted by adjusted average GPA loaded from out_file.csv

About

Select courses from UW-Madison's Course Search based on ease of course

Resources

License

Stars

Watchers

Forks

Languages