E-mail based guestbook. Static page generator with emails as input. https://scuti.neocities.org/pages/guestbook
scuti eda221a8d9 merged branch publish | 3 mesi fa | |
---|---|---|
example | 3 mesi fa | |
filters | 3 mesi fa | |
src | 3 mesi fa | |
README.md | 3 mesi fa | |
requirements.txt | 3 mesi fa |
Statically generates a guestbook based on e-mails.
Helpful if:
What it does:
What it doesn't do:
(This script assumes you downloaded your emails either manually or through an email client.)
This script uses Python 3 and was tested with Python 3.12.5.
Autogenerated by pipreqs.
beautifulsoup4 python_dateutil toml
python src/guestbook.py -c yourconfig.toml > guestbook.html
The default config file assumes there is
inbox
in the current working directorymwe.html
has been copiedFilters turn e-mail notifications from services into guestbook comments. Example: you want to include notifications sent by neocities in your guestbook.
When reading a filter, the script scans for keywords:
{__username__}
, the user on the service who wrote the comment{__message__}
, the comment written by the user{__link__}
, the link to the comment included by the e-mail notification{keep}
, words from the e-mail notification to keep in the guestbook commentEvery other word that the email message and the filter have in common is omitted from the guestbook.
filters/neocities.html
[[diff.services]]
in example/config.toml
In this example, {__username__}
is highlighted so the guestbook links back to the commenter's profile on neocities. The {__link__}
is used to create an anchor tag on the timestamp.
This was developed with my own use in mind. I currently don't receive enough guestbook comments to need to write a pagination function.