bookmarkdown
Parse your browser's exported HTML bookmark file to Markdown.
Supported browsers: Brave.
Installation
pip install bookmarkdown
Usage
CLI
btm bookmarks.html
btm --output=bookmarks.md bookmarks.html
btm bookmarks.html > bookmarks.md
Python
The BookmarkHTMLParser
is an instance of the Python standard library's
HTMLParser
and thus supports all its
methods.
from bookmarkdown import btm
parser = btm.BookmarkHTMLParser()
parser.feed(html_content)
parser.data
FAQ
Concerns
- Minimal dependencies.
bookmarkdown
is likely to be installed on the system level Python to make
use of the btm
script. - Correctness. No one likes to lose a bookmark nor a different ordering.
Future ideas
The current application solves my needs pretty well, but there are additional applications I can
think of. Such as merging multiple bookmark files.
Add functionality to the CLI and Python codebase to support the following:
btm --merge=[md-file] [html-file]
btm [html-file]
btm -r [md-file]
btm -r --merge=[md-file] [html-file]
Project structure
The project structure was automatically set up using cookiecutter
and my Python template:
cutter-py.