Low commit activity in last 3 years
No release in over a year
Dump ~/Library/Safari/Bookmarks.plist as JSON/YAML
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 3.5
 Project Readme

safari_bookmarks_parser

This gem provides a command to dump ~/Library/Safari/Bookmarks.plist as JSON/YAML.

Prerequisites

In "System Preferences" -> "Security & Privacy" -> "Privacy" -> "Full Disk Access", check "Terminal".

Installation

$ gem install safari_bookmarks_parser

Usage

Dump

Dump Bookmarks.plist:

$ safari_bookmarks_parser dump

Dump Bookmarks.plist to Bookmarks.json:

$ safari_bookmarks_parser dump -o Bookmarks.json

Dump Bookmarks.plist as list:

$ safari_bookmarks_parser dump --list

Dump Bookmarks.plist as YAML:

$ safari_bookmarks_parser dump -f yaml

Dump Reading List only:

$ safari_bookmarks_parser dump -r

Dump without Reading List:

$ safari_bookmarks_parser dump -R

Dump other Bookmarks.plist:

$ safari_bookmarks_parser dump /path/to/Bookmarks.plist

Dups

Find duplicated bookmarks:

$ safari_bookmarks_parser dups

Find duplicated bookmarks excluding reading list:

$ safari_bookmarks_parser dups -R

Empty

Find empty folders:

$ safari_bookmarks_parser empty

Development

  • Run bin/rubocop to check syntax
  • Run bin/rspec to test

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/healthypackrat/safari_bookmarks_parser.

License

The gem is available as open source under the terms of the MIT License.