PittAPI icon indicating copy to clipboard operation
PittAPI copied to clipboard

Rewrote dining.py to work with the new site

Open jeffzheng13 opened this issue 2 years ago • 0 comments

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

jeffzheng13 avatar Mar 11 '23 19:03 jeffzheng13