PittAPI
PittAPI copied to clipboard
Rewrote dining.py to work with the new site
Forewarning this is my first ever pull request, so sorry if this formatting is bad 😣
- Used Chrome's network tools on dineoncampus.com/pit to see what calls were made
- Made the requests to the same API the site was making
- Methods work but wasn't too sure on what other functionality should be added (a lot was just parsing json)
- Added get_location_hours(), get_menu(), get_all_locations()
- Data structures used to store data is a little convoluted
- Have not written JUnit tests to test the program but it works and returns correctly so far