Golang library to work with bookmark export files in Netscape bookmark format.
go get github.com/suhodolskiy/netscape-bookmarks
package main
import (
...
bookmarks "github.com/suhodolskiy/netscape-bookmarks"
)
func main() {
input, _ := os.OpenFile("./example.html", os.O_RDONLY, 0644)
data, _ := bookmarks.Parse(input)
fmt.Println("Result", data)
}
go run cmd/conver/main.go --input ./example.html --output ./example.json
- Add the ability to generate a bookmark file
- Add the ability to convert HTML file to other formats (YAML, XML)