Menu scraper
is an CLI application that scrapes restaurants for it's daily menus and prints them in the terminal.
git clone https://github.com/jsmadis/menu-scraper.git
cd menu-scraper
go build
To show help on how to run the app run the following command:
./menu-scraper -help
Basic commands to run the app are:
- prints daily menu for the whole week:
./menu-scraper
- prints daily menu only for today:
./menu-scraper --today
- prints restaurant based on their
tag
./menu-scraper --tag HW
- prints only specified restaurants
./menu-scraper --name Cap --name Suzies
In order to add new restaurant you need to create new entry inside config/restaurants.yml
with name, url and css selector.
The css selector must point to the menu in order to obtain it.