This will convert any ics calendar url into an events.md
file
which can be imported into a Hugo website. It will contain only
upcoming events.
There are two versions: Bash and Python.
This requires icsp.
Example:
bash ics2hugo.sh -u "https://example.org/calendar.ics" -p ~/path/to/hugo/content/calendar
Example:
python ics2hugo.py --url "https://example.org/calendar.ics" --path ~/path/to/hugo/content/calendar
If you want all events in separate markdown files (like in the
origin repository), just remove the #
at the beginning of
some lines in ics2hugo.py
.
pyenv install --list
pyenv install $latest_version
pip install -r requirements.txt
cat requirements.txt | cut -f1 -d= | xargs pip install -U
pip freeze >requirements.txt