Scraper utility tool to fetch daily menus around the Yco office.
$ npm install daily-menu
const dailyMenu = require('daily-menu');
dailyMenu()
.then(results => {
console.log(results); //=> array of daily restaurant offers
});
Returns a Promise
, which resolves to the scraped restaurant offers. The result object looks something like this:
[
{
"name": "Foo Bar",
"date": "2017-10-11T20:34:42.086Z",
"items": [
"Paradicsomleves",
"Burgonyafőzelék, feltét",
"Fűszeres csirkemell, salátaágyon",
"Pirított sertésmáj, tört burgonya"
]
}
]
$ npm install --global daily-menu
$ daily-menu
Typing this command will result in displaying the current restaurant offers in a table.
This utility is currently capable of retrieving offers from these restaurants:
MIT © Máté Farkas