1
0

Documentation

This commit is contained in:
Jon Michael Aanes 2024-10-26 15:17:31 +02:00
parent 31bff7b639
commit a54cb92d69
Signed by: Jmaa
SSH Key Fingerprint: SHA256:Ab0GfHGCblESJx7JRE4fj4bFy/KRpeLhi41y4pF3sNA

View File

@ -1,3 +1,29 @@
"""Libpurple to markdown conversion script.
Conversion script for HTML-based logs from [Pidgin/Libpurple](https://pidgin.im/) chat program.
**This is an one-off script, and is not actively maintained.**
## Motivation
I recently discovered [Obsidian](https://obsidian.md) and liked the prospect of
cross-referencing my notes with my old chat logs. Libpurple uses HTML logs if
you haven't configured it to something else (which I haden't).
I no longer use IRC or Pidgin as my entire friend group have switched to using
Matrix.
## Usage
From the repository root:
```bash
python -m libpurple_to_markdown LOG_DIRECTORY --output OUTPUT_FOLDER
```
It was made specifically for import into Obsidian, so it might not suite your
purposes, but it shouldn't be too difficult to adjust.
"""
import dataclasses import dataclasses
import datetime import datetime
from collections.abc import Iterator, Iterable from collections.abc import Iterator, Iterable