Crates.io | netscape_bookmark_parser |
lib.rs | netscape_bookmark_parser |
version | 0.1.4 |
created_at | 2025-01-19 04:18:54.130672+00 |
updated_at | 2025-01-19 04:38:19.37569+00 |
description | A Netspace bookmark parser for Rust |
homepage | http://dnrops.gitlink.net |
repository | https://gitlab.com/andrew_ryan/netscape_bookmark_parser |
max_upload_size | |
id | 1522523 |
size | 36,180 |
netscape_bookmark_parser
is a Rust crate designed to parse HTML bookmark files (commonly exported from web browsers) and convert them into a structured JSON format. This crate provides functionality to read, parse, and transform bookmark data, making it easier to work with bookmarks programmatically.
To use netscape_bookmark_parser
, you can add it as a dependency in your Cargo.toml
file:
cargo add netscape_bookmark_parser
Then, you can call the run
function to process an HTML bookmarks file and output the result as a JSON file:
use netscape_bookmark_parser;
fn main() -> std::io::Result<()> {
netscape_bookmark_parser::run("input.html", "output_directory")?;
Ok(())
}
cargo install netscape_bookmark_parser
# example
netscape_bookmark_parser -d html2json -i .\bookmark.html -o ./
netscape_bookmark_parser -d json2html -i .\bookmark.json -o ./