Ein Programm zum automatischen Veröffentlichen der Veranstaltungen des Z10 e.V. auf Platformen aller Art
Benutzung: main.py [-h] [-w]
Automatisiertes Veröffentlichen von Events auf einer Reihe von Platformen
options:
-h, --help Zeige diese Hilfe und beende das Programm
-w, --not-headless Ist diese Flagge gesetzt öffnet sich Firefox als
Fenster. Wenn nicht, läuft es nur im Hintergrund
-
The corresponding Binary File
-
newest(-ish) version of Firefox installed
-
a correctly filled "credentials.py" (For reference see credentials_template.py) in the same directory
-
Firefox is used as browser and therefore also necessary and has to be installed.
-
locale "de_DE" is installed (Link for linux users).
-
Firefox does not autotranslate Websites
all pip-requirements are listed in requirements.txt. To install all at once execute pip3 install -r requirements.txt
-
Up to date Python 3
-
All needed file in the same structure as in this repo and a correctly filled "credentials.py" (For reference see credentials_template.py)
-
Selenium is needed as it does all the web automation:
pip3 install selenium
-
pwinput is needed for the secret password prompt:
pip3 install pwinput
-
Firefox is used as browser and therefor also necessary and has to be installed.
-
locale "de_DE" is installed
-
Nebenan.de is set to german locale (I don't know if others are even possible, but still.)
-
Probably a linux distribution (tested only on Fedora 40). Maybe Windows, but i haven't tested yet. You are welcome to do so and report your findings!
Linux: to_binary.sh
, Windows: to_binary.bat
all pip-requirements are listed in requirements_for_binary_conversion.txt. To install all at once execute pip3 install -r requirements.txt
-
Up to date Python 3 (I assume)
-
Pyinstaller is needed for the conversion:
pip3 install pyinstaller
-
Firefox is used as browser and therefor also necessary and has to be installed.
-
Probably a linux distribution (tested only on Fedora 40). Maybe Windows, but i haven't tested yet. You are welcome to do so and report your findings!
- *.png
- *.jpg
- *.gif
will be converted to a new *.png before uploading which is deleted again afterwards:
- *.webp
- Kalender Karlsruhe
- Nebenan.de
- StuWe
- Z10 Website + Wiki
- Venyoo
example with "Name" as plugin name:
- create a Name.py file that contains an object
plugininfo
of typePluginInfo
(see helper.py) and arun
funtion - Set a
str
with a friendly name (i.e. "my Plugin"), astr
of your default kategory key (if applicable, elseNone
) and adict[str: str]
of category indices and names (if applicable, else a emptydict
) - populate the
run
-function with code that logs into your platform and publishes the Event - import
Name
and addName
to theplugins
array in main.py ((currently) at line 18)
This acts as a help for people new to this context, but also as a link-collection for future projects for myself