Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 2.66 KB

README.md

File metadata and controls

47 lines (35 loc) · 2.66 KB

ooen-downloader

Build GitHub license

Automatic downloader for Oberösterreichische Nachrichten Epaper Newspaper.

Introduction

This application uses selenium to download the daily issue of OÖNachrichten. The ooen-downloader automatically logs in and downloads every edition and saves it locally. It requires and active subscription of OÖN.

Requirements

Usage

You can run this script manually if you have all requirements present on your system or just run the container.

It supports the following environment variables as configuration:

Variable Description Type Default
OOEN_DOWNLOAD_DIR Directory to download the newspaper pdfs to str /download
OOEN_USERNAME E-Mail or username of your subscription (NOTE: I did not test this with OIDC or Google Login str None
OOEN_PASSWORD Password of your subscription str None
DEBUG If this variable is set to True it will display additional output and disable headless mode for the browser for debugging purposes bool False

To run this locally install the prerequisites mentioned above and run pip install -r requirements.txt. Then you just have to set the environment variables and run python3 ./main.py.

To run this in a container you can get started using the following command:

podman run -it --rm \
  -v `pwd`/ooen:/download \
  -e OOEN_USERNAME=<username or email> \
  -e OOEN_PASSWORD=<password> \ 
  --name ooen-downloader \
  ghcr.io/franznemeth/ooen-downloader:v0.0.2

If you want to run this as a scheduled job in kubernetes see the examples in /deploy/kubernetes.