pittcsc / PittAPI

An API to easily get data from the University of Pittsburgh
https://pittapi.pittcsc.org
GNU General Public License v2.0
105 stars 30 forks source link

Use LaundryView's JSON API instead of BeautifulSoup #102

Closed metheno closed 3 months ago

metheno commented 5 years ago

I found those two APIs from LaundryView. The first returns university data and the second returns room data.
https://www.laundryview.com/api/c_room?loc=197
https://www.laundryview.com/api/currentRoomData?school_desc_key=197&location=2430137

I'm new to Python but I guess that JSON would be a bit more efficient than BeautifulSoup?

RitwikGupta commented 5 years ago

Woah, yeah, these are brand new. Want to make a PR to use these instead?

azharichenko commented 5 years ago

I have found someone (@katelyn98) that will update the laundry API with the use of the APIs from Laundryview.