From c327998c10eaa16629f79d97b4a0b925f74a43f0 Mon Sep 17 00:00:00 2001 From: scriptos Date: Thu, 21 Mar 2024 20:29:58 +0100 Subject: [PATCH] =?UTF-8?q?Link=20zum=20Beitrag=20im=20E-Mail-Body=20hinzu?= =?UTF-8?q?gef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nox-forum-watcher.v1.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nox-forum-watcher.v1.py b/nox-forum-watcher.v1.py index 25644f8..df2aae7 100644 --- a/nox-forum-watcher.v1.py +++ b/nox-forum-watcher.v1.py @@ -5,9 +5,9 @@ Aufruf: python3 nox-forum-watcher.v1.py Autor: Patrick Asmus Web: https://www.media-techport.de Git-Reposit.: https://git.media-techport.de/scriptos/nox-forum-watcher.git -Version: 1.0-1 +Version: 1.1 Datum: 21.03.2024 -Modifikation: Header aktualisiert +Modifikation: Link zum Beitrag im E-Mail-Body hinzugefügt ''' import requests @@ -24,7 +24,7 @@ empfaenger_email = 'system@media-techport.de' # URL des Forums url = "https://forum.nox.to/index.php?thread/133929-gutschein-angebote/" -topic= "Forum NOX.TO | Gutschein Angebote" +topic = "Forum NOX.TO | Gutschein Angebote" # Letzter bekannter Beitrag letzter_beitrag = "" @@ -43,7 +43,7 @@ while True: # E-Mail-Inhalte subject = "Neuer Beitrag im Forum" - body = f"Es gibt einen neuen Forenbeitrag im Thema: {topic}" + body = f"Es gibt einen neuen Forenbeitrag im Thema: {topic}\n\nLink zum Beitrag: {url}" # E-Mail senden msg = MIMEText(body) @@ -57,4 +57,4 @@ while True: server.quit() # Wartezeit zwischen den Überprüfungen - time.sleep(60) # 1 Minute \ No newline at end of file + time.sleep(60) # 1 Minute