# Example usage: profile_path = os.path.join(os.path.expanduser('~'), 'AppData', 'Local', 'Google', 'Chrome', 'User Data') bookmarks = read_chrome_bookmarks(profile_path) if bookmarks: print(json.dumps(bookmarks, indent=4))
import json import os
Simply copy the Bookmarks and Bookmarks.bak files from the appropriate user data folder. where the bookmarks are stored in chrome