Initial commit - fetch Discourse category topics

This commit is contained in:
Marta Sienkiewicz 2026-01-11 15:56:30 +01:00
commit 1d8e18247d
6 changed files with 92 additions and 0 deletions

12
main.py Normal file
View file

@ -0,0 +1,12 @@
DISCOURSE_URL = "https://kb.hs3.pl/" # Database is hosted here
DISCOURSE_CATEGORY = 9 # Database is stored in this Discourse category
from discourse import Discourse
if __name__ == "__main__":
print(f"Discourse database: f{DISCOURSE_URL}/{DISCOURSE_CATEGORY}")
print("Fetching database data to zasoby.csv...")
dis = Discourse(DISCOURSE_URL)
print("Generating HTML dashboard...")
print("Done!")