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