Skip to main content

Scrap daily menu and send it via e-mail

Project description

This utility will scrap daily menues from nearby restaurants and send them via e-mail. It is based on very simple modular architecture where each extractor presents similar API.

Instalation

Use Python 3.6 virtual environment to install all necessary dependencies:

$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ pip install -U pip
(venv) $ pip install git+https://github.com/oskar456/poledni-menu

After installation, you’ll get three new runables:

poledni-menu-print <extractor>
Call given extractor and print its output to the standard output.
poledni-menu-digest <config file>
Read a list of extractors and their parameters from a YAML config file. Print daily menu digest to the standard output.
poledni-menu-email <config file>
Read a list of extractors and their parameters from a YAML config file. Send an e-mail with the digest to e-mail addresses configured in the config file.

Configuration file example

---
menu:
 - potrefena_husa
 - kulatak
 - budvarka
 - blox
 - extractor: agata
   place_id: 3
 - extractor: agata
   place_id: 5
 - bernard_pub

email:
  server: localhost
  sender: Foodmaster <foodmaster@example.com>
  recipients:
          - Root <root@localhost>
          - postmaster@example.com
...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for poledni-menu, version 0.15
Filename, size File type Python version Upload date Hashes
Filename, size poledni_menu-0.15-py3-none-any.whl (15.1 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size poledni-menu-0.15.tar.gz (7.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page