Library Website Scraper

This documentation explains the methods of the StudySpaces object. This SDK module is implemented by scraping the Penn Libraries LibCal website.

class penn.studyspaces.StudySpaces[source]

Used for interacting with the UPenn library GSR booking system.

Usage:

>>> from penn import StudySpaces
>>> s = StudySpaces()
get_buildings()[source]

Returns a list of building IDs, building names, and services.

static get_room_id_name_mapping(building)[source]

Returns a dictionary mapping id to name, thumbnail, and capacity.

get_rooms(building, start, end)[source]

Returns a dictionary matching all rooms given a building id and a date range.

static parse_date(date)[source]

Converts library system dates into timezone aware Python datetime objects.