https://github.com/codetheweb/mtu-dining
🌮 🌠A scrapper for MTU's dining halls.
https://github.com/codetheweb/mtu-dining
Last synced: 21 days 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 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T05:32:45.000Z (almost 3 years ago)
- Last Synced: 2025-02-13T10:48:03.310Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 749 KB
- Stars: 0
- Watchers: 3
- 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.