项目作者: gieldemeulemeester

项目描述 :
Export Safari reading list to webloc files.
高级语言: Python
项目地址: git://github.com/gieldemeulemeester/export-safari-reading-list.git
创建时间: 2020-12-11T21:31:23Z
项目社区:https://github.com/gieldemeulemeester/export-safari-reading-list

开源协议:MIT License

下载


GitHub license

export-safari-reading-list

Export Safari’s reading list to webloc files.

The Python script requires a -i/--ifile argument with the path to Safari’s bookmarks file or a byte stream from stdin. Optionally, you can add a -o/--opath argument with the path to the output directory for the .webloc files. If omitted, the .webloc files will be written to the current working directory.

Safari’s Bookmarks.plist file can be found in ~/Library/Safari/. However, this directory is by default no longer accessible with Terminal in macOS Mojave (10.14) or later. You can either copy this file somewhere accessible or grant full disk access to Terminal.

Usage examples:

  1. python3 export_safari_reading_list.py -i ~/Desktop/Bookmarks.plist -o ~/Desktop/rlist
  1. cat ~/Desktop/Bookmarks.plist | export_safari_reading_list.py -o ~/Desktop/rlist