diff --git a/.gitmodules b/.gitmodules index 3afb62d..b9f34c7 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "feed_generator"] path = feed_generator url = http://gitlab.vanten-s.com/vanten-s/feed_generator.git +[submodule "feed_articles"] + path = feed_articles + url = http://gitlab.vanten-s.com/vanten-s/feed_articles.git diff --git a/feed_articles b/feed_articles new file mode 160000 index 0000000..6fa7f30 --- /dev/null +++ b/feed_articles @@ -0,0 +1 @@ +Subproject commit 6fa7f3096bcff1b65d735124c56da89facdeba10 diff --git a/feed_generator b/feed_generator index 73cc349..a7d96ea 160000 --- a/feed_generator +++ b/feed_generator @@ -1 +1 @@ -Subproject commit 73cc34940565aa2532fac3aa2662095d2535985a +Subproject commit a7d96ea52ffa42139ac5466b5ea7d5aa3ee7900b diff --git a/frmWrk b/frmWrk index 72eff55..b454f70 160000 --- a/frmWrk +++ b/frmWrk @@ -1 +1 @@ -Subproject commit 72eff55c4c90d3c9d7a813cce26ee3ef3cca2f70 +Subproject commit b454f70fbb366ad8b6ec84c8a6d3ca47549264f2 diff --git a/main.py b/main.py index 4f867e2..8318891 100644 --- a/main.py +++ b/main.py @@ -1,13 +1,21 @@ -import frmWrk.website +import frmWrk.website as website import feed_generator +from time import sleep - -webserver = frmWrk.website.WebServer("", 3000, "./src/", overwrites={ - "/rss.xml": (lambda path: feed_generator.make_rss_feed("feed_articles/", - "vanten-s", - "https://vanten-s.com/", - "Vantens personal feed"))} -) +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() + diff --git a/src/rss.xml b/src/rss.xml new file mode 100644 index 0000000..1a58386 --- /dev/null +++ b/src/rss.xml @@ -0,0 +1,20 @@ + + + + +Vantens +https://vanten-s.com/ +Vantens personal feed + +First post +vanten-s@vanten-s.com +04 08 2023 10:30:00 +0200 + +

First post

+

Hiii, I'm vanten and I will try to post here as often as possible

+
+
+ +
+ +