mirror of
https://github.com/haisul7/html2mu.git
synced 2025-11-23 07:49:10 +00:00
CLI tool to convert web pages (HTML) into Micron format to use in Nomad Network nodes
| example | ||
| src | ||
| .gitignore | ||
| __init__.py | ||
| html2mu.py | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
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