peppertom / daily-menu

Scraper utility tool to fetch daily menus around the Yco office.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

daily-menu Build Status

Scraper utility tool to fetch daily menus around the Yco office.

daily-menu screencast

Install

$ npm install daily-menu

Usage

const dailyMenu = require('daily-menu');

dailyMenu()
	.then(results => {
	   console.log(results); //=> array of daily restaurant offers 
	});

API

dailyMenu()

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"
    ]
  }
]

CLI

$ npm install --global daily-menu
$ daily-menu

Typing this command will result in displaying the current restaurant offers in a table.

List of supported restaurants

This utility is currently capable of retrieving offers from these restaurants:

License

MIT © Máté Farkas

About

Scraper utility tool to fetch daily menus around the Yco office.

License:MIT License


Languages

Language:JavaScript 100.0%