A command-line tool to parse Google Chrome bookmarks and store them in a SQLite database for easy searching and management.
- Parse Chrome bookmarks HTML export file
- Store bookmarks in SQLite database
- Search bookmarks by title or URL
- Check for dead links and redirects
- Organize bookmarks by folders
- Generate validation reports for bookmark status
- Export bookmarks in different categories (valid, dead links, redirects)
- Track duplicate bookmarks
- Maintain folder structure during import/export
- Ensure you have Go 1.21 or later installed
- Clone this repository
- Install dependencies:
go mod download
Export your Chrome bookmarks to an HTML file and use the parse command:
./bookmark-parser parse -file path/to/bookmarks.html
Search through your parsed bookmarks:
./bookmark-parser search -query "search term"
The search will look for matches in both the title and URL of bookmarks.
Check for dead links and redirects in your bookmarks:
./bookmark-parser validate
This will generate a validation report in the output/validation_report.txt
file with statistics about valid URLs, dead links, and redirects.
Export your bookmarks based on their status:
./bookmark-parser export
This will create three files in the output
directory:
bookmarks.html
: Valid bookmarks that are working correctlydead-links.html
: Bookmarks that are no longer accessibleredirects.html
: Bookmarks that redirect to different URLs
All exported files maintain the original folder structure and can be imported back into Chrome.
To build the project:
go build
MIT License