Skip to content
This repository was archived by the owner on Mar 10, 2024. It is now read-only.

Repository files navigation

Newspaper Down And Up Loader

Each morning this MicroService downloads my newspaper and uploads it to my personal telegram group (single member group).

If you want to use this program you need a digital subscription of Morgenweb.de

Should also work for other newspaper of Visiolink.com


Setup

  • Run install_py_libs as SU or with sudo
  • Run Create_Config.js in browser
  • Get Telegram Developer Key
  • Get Telegram Group URL from Telegram Web
  • Run Main.py for first config

Example Conifg

{
    "newsletter": {
        "url": "digitalezeitung-bergstraesser-anzeiger.morgenweb.de",
        "cookie_list": "xxxxxxxxxx",
        "pdf_endpoint": "_ba-be_0.pdf"
        "counter": 931
    },
    "upload_targets": {
        "telegram": "https://t.me/joinchat/xxxxxxxxx"
    }
}

chmod +x /home/YOUR_USER_NAME/Download-Newspaper/Run_Newspaper_Download.sh

Run

crontab -e

Add line

 10 7 * * * sh ~/Download-Newspaper/Run_Newspaper_Download.sh > /dev null 2>&1

If you want another schedule:

*     *     *     *     *  Command
-     -     -     -     -
|     |     |     |     |
|     |     |     |     +----- Weekday (0 - 7) (Sunday is 0 and 7)
|     |     |     +------- Month (1 - 12)
|     |     +--------- Day (1 - 31)
|     +----------- Hour (0 - 23)
+------------- Minute (0 - 59)

About

Download Newspaper from Morgenweb.de and Upload to my Telegram Account

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages