Bookmark Explorer is a Python package designed to effortlessly extract, analyze, and navigate through your browser bookmarks. Whether you're dealing with a massive collection of bookmarks or just want to quickly find that one elusive link, Bookmark Explorer has you covered.
- Parse Netscape Bookmark Files: Effortlessly extract bookmarks from HTML bookmark files exported from Chrome, Firefox, and other browsers.
- Structured Representation: Organize bookmarks into a clear hierarchy, making it easy to traverse and search.
- JSON Conversion: Convert parsed bookmarks into JSON for easy integration with other tools and applications.
pip install bookmark_explorer
from bookmark_explorer import BookmarkParser
with open('bookmarks.html', 'r') as f:
parser = BookmarkParser(f)
# Get all bookmarks
all_bookmarks = parser.all_bookmarks()
# Find a specific folder
folder = parser.find_folder("Recipes")
# Convert to JSON
json_data = parser.to_json()