https://github.com/codetheweb/mtu-dining
🌮 🌠A scrapper for MTU's dining halls.
https://github.com/codetheweb/mtu-dining
Last synced: about 2 months ago
JSON representation
🌮 🌠A scrapper for MTU's dining halls.
- Host: GitHub
- URL: https://github.com/codetheweb/mtu-dining
- Owner: codetheweb
- License: mit
- Created: 2018-12-04T01:51:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T05:32:45.000Z (over 3 years ago)
- Last Synced: 2025-04-07T06:41:39.839Z (11 months ago)
- Language: JavaScript
- Homepage:
- Size: 749 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🌠MTU-Dining 🌮 [](https://travis-ci.com/codetheweb/mtu-dining)
==================
A package to scrape all those tasty meals (😋) from Michigan Tech's published meal schedule for the dining halls.
## Usage
```javascript
const MTUDining = require('mtu-dining');
const McNair = new MTUDining();
(async() => {
await McNair.load(McNair.MCNAIR);
console.log(McNair.get({month: 7, day: 27}))
})();
```
## Documentation
Dead simple, just like the meals. Two functions:
- `load(hall)`, where `hall` is `(new MTUDining()).MCNAIR || (new MTUDining()).WADS`.
- `get(date)`, where `date` is `{month: _month_, day: _day_}`.
Enjoy your food.