Link zum Beitrag im E-Mail-Body hinzugefügt
This commit is contained in:
		
							parent
							
								
									75c3ffd581
								
							
						
					
					
						commit
						c327998c10
					
				@ -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
 | 
			
		||||
    time.sleep(60)  # 1 Minute
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user