vanten-s.com/main.py
2023-08-05 10:42:22 +02:00

22 lines
433 B
Python

import frmWrk.website as website
import feed_generator
from time import sleep
webserver = website.WebServer("", 3000, "./src")
webserver.start()
while True:
feed = feed_generator.make_rss_feed("feed_articles", "Vantens", "https://vanten-s.com/", "Vantens personal feed")
with open("src/rss.xml", "w") as f:
f.write(feed)
try:
sleep(15)
except KeyboardInterrupt:
break
webserver.close()