Skip to content

Instantly share code, notes, and snippets.

View mistertwo's full-sized avatar

Daniel Turton mistertwo

View GitHub Profile
@mistertwo
mistertwo / edu_scraper.py
Created February 2, 2021 16:03
Class Plan Scrape and Compare. Something thrown together to compare a couple pages of degree plans, and see what classes might match.
# https://catalog.utexas.edu/undergraduate/engineering/degrees-and-programs/bs-electrical-engineering/
# and
# https://catalog.utexas.edu/undergraduate/natural-sciences/degrees-and-programs/bs-mathematics/
#how to test run in ipython:
# import edu_scraper as eds; eds.page0 = "https://catalog.utexas.edu/undergraduate/engineering/degrees-and-programs/bs-electrical-engineering/";
# eds.page1 = "https://catalog.utexas.edu/undergraduate/natural-sciences/degrees-and-programs/bs-mathematics/"; eds.set_target_class_number_struct("([0-9]{3}[A-Z])"); results = eds.do_stuff()
page0 = ""
page1 = ""
$ touch test_file
$ git add test_file
$ git commit -m "adding blank commit"
[master (root-commit) ea3f605] adding blank commit
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 test_file
$