2023-08-05 10:42:22 +02:00
|
|
|
import frmWrk.website as website
|
2023-08-04 16:40:47 +02:00
|
|
|
import feed_generator
|
2023-08-05 10:42:22 +02:00
|
|
|
from time import sleep
|
2023-08-04 16:40:47 +02:00
|
|
|
|
2023-08-05 10:42:22 +02:00
|
|
|
webserver = website.WebServer("", 3000, "./src")
|
2023-08-01 21:04:58 +02:00
|
|
|
|
|
|
|
webserver.start()
|
|
|
|
|
2023-08-05 10:42:22 +02:00
|
|
|
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()
|
|
|
|
|