icssc / peterportal-api-next

API that provides easy access to public data from UC Irvine. Developed for Anteaters, by Anteaters.
https://docs.icssc.club/anteaterapi
MIT License
6 stars 0 forks source link

Study room availability scraper #39

Closed ecxyzzy closed 6 months ago

ecxyzzy commented 1 year ago

Notes: image https://www.lib.uci.edu/sites/all/scripts/occuspace.php?id=666

ecxyzzy commented 1 year ago

Going to icebox this since ZotMeet is on hold at the moment.

cokwong commented 10 months ago

@sanskarm7 Try creating a function to grab all unique room IDs by making a POST request to https://spaces.lib.uci.edu/spaces/availability/grid

example:


curl --location 'https://spaces.lib.uci.edu/spaces/availability/grid' \
--header 'Referer: https://spaces.lib.uci.edu/spaces?lid=6579' \
--form 'lid="6579"' \
--form 'gid="0"' \
--form 'start="2024-01-22"' \
--form 'end="2024-01-23
"' \
--form 'pageSize="18"'