CLI tool to convert web pages (HTML) into Micron format to use in Nomad Network nodes
Find a file
2025-09-12 16:32:47 +03:00
example fix example 2025-09-03 00:34:41 +03:00
src escape = in urls 2025-08-28 23:45:35 +03:00
.gitignore Initial commit 2023-05-14 00:15:31 +03:00
__init__.py make it a module 2025-08-28 22:54:32 +03:00
html2mu.py better examples 2025-09-03 00:17:41 +03:00
LICENSE Update LICENSE 2025-09-12 16:32:47 +03:00
pyproject.toml fix example 2025-09-03 00:34:41 +03:00
README.md fix example 2025-09-03 00:34:41 +03:00
uv.lock make it a module 2025-08-28 22:54:32 +03:00

html2mu

Python library to convert HTML pages from the Internet to Micron format used in Reticulum Network.

Built on html-to-markdown and mistune library for custom Markdown parsers (inspired by & forked from randogoth/md2mu)

🚧 WIP 🚧

Optimized somewhat for simple blog pages like those on HackerNews (news.ycombinator.com), otherwise far from perfect. See Limitations & TODO

Questions, feedback, bug reports: lxmf@ae623c940a36d9215da1893f6a3028bd

TODO

  • support media as downloadable files
  • get better at filtering out fluff
  • escape bad characters (e.g. random ">" in beginning of the line; links)

Usage

uv sync

cd example && uv run python example.py  # example usage in html2mu.py

Limitations

  • micron does not support many html elements and styles