fl2o / menu_3b

Parse and format menu for local restaurant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Parsing a menu from instagram highlight weekly video, original account and video visible here : https://www.instagram.com/3brasseurscompiegne/

  • Download the clip using instagrapi. They are not stored in the repo
  • Perform OCR using easyOCR. Output is stored in data/extracted_text
  • Parse the text to human readable format using OpenAI GPT3.5-turbo
  • Store the output in MENU.md

TODOS:

  • automate with github action
  • email the output

Installation

Fill .envrc and load it using direnv

Install dependencies from requirements.txt (tested with Python 3.9.16). For instance

pyenv install 3.9.16
pyenv local 3.9.16
mkvirtualenv -a . -p $(which python) menu3b
pip install -r requirements.txt

Usage

Run python parse_menus.py 🎊

Look at MENU.md

About

Parse and format menu for local restaurant


Languages

Language:Python 100.0%