Code Monkey home page Code Monkey logo

uw-room-hours's Introduction

uw-room-hours

uw-room-hours is a tool for viewing the weekly course schedules of building rooms at the University of Washington - Seattle.

It's especially helpful for figuring out when and how long a room is open to use for studying or working on homework.

The uw-room-hours tool can be accessed at https://joshiabhishek.github.io/uw-room-hours/ (Updated for Autumn 2019)

Get & Add Data

The following are the instructions for how to retrieve and add the properly formatted UW Seattle Time Schedule data needed for this tool:

  1. Download and install the uw-scrapers repository code, following its installation steps

  2. Run the following functions in the uw-scrapers index.js file to scrape the UW Time Schedule for the given quarter, export the data, parse the exported files, and create a JSON file mapping buildings to rooms to days of the week to courses

// Expose the extractCourseInfo function for use in the Puppeteer page instance
await mainPage.exposeFunction("extractCourseInfo", TimeScheduleScraper.extractCourseInfo);

// Scrape and export UW Time Schedule information by major for a quarter
await TimeScheduleScraper.exportCoursesByMajorAndQuarter(mainPage, "SPR2019", function(file_name, data) {
    ExportUtils.exportJSONArray(DATA_EXPORT_BASE_URL + "SPR2019/", file_name, "data", data);
});

// Parse and export the UW Time Schedule data by grouping courses in to arrays mapped from building, room, and day of the week 
TimeScheduleDataParser.exportTimeScheduleDataMappedToLocationFromFolder(DATA_EXPORT_BASE_URL + "SPR2019/", function (data) {
    ExportUtils.exportJSONObject(DATA_EXPORT_BASE_URL, "TSMAP.json", data);
});
  1. Copy the JSON file's contents and set it equal to the "tsmap" variable in the uw-room-hours external javascript file
var tsmap = {...}

Terms & License

This software is provided as is, with no guarantees of functionality. You assume full liability for any of your own usage, modification, and distribution of any portion of this software. All such actions relating to this software should comply with relevant laws and policies, including appropriate use of University of Washington services and data as defined by Washington State and the University of Washington.

Licensed under the GNU license.

uw-room-hours's People

Contributors

joshiabhishek avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.