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.

Source Distribution

poledni-menu-0.4.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

poledni_menu-0.4-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file poledni-menu-0.4.tar.gz.

File metadata

  • Download URL: poledni-menu-0.4.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for poledni-menu-0.4.tar.gz
Algorithm Hash digest
SHA256 30b86cb23575ae868e7aa0e697ac0d017056172101747bb9e94584336a4c37f2
MD5 bc64958f9a5cb273e39b9f03c14ca8d7
BLAKE2b-256 7e89ca2047d27121cac2b5bd114c342524014904d83860ad53984d6530b7060a

See more details on using hashes here.

File details

Details for the file poledni_menu-0.4-py3-none-any.whl.

File metadata

  • Download URL: poledni_menu-0.4-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for poledni_menu-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1e70ce8a1e58ba5172f402ff36d9c9cb2d4c6a3b7e22eda45f0079ec951a277d
MD5 916d23728870fa53234bae463de660bb
BLAKE2b-256 a5e6745bc40102de330acfe31882ace4cbc041a1409fa852057c7196ee6a4b8c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page