Initial commit - fetch Discourse category topics
This commit is contained in:
commit
1d8e18247d
6 changed files with 92 additions and 0 deletions
12
main.py
Normal file
12
main.py
Normal 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!")
|
||||
Loading…
Add table
Add a link
Reference in a new issue