Skip to content

Instantly share code, notes, and snippets.

View shane1027's full-sized avatar

Shane Ryan shane1027

View GitHub Profile
@shane1027
shane1027 / export_safari_reading_list.py
Last active March 18, 2024 02:27
export safari reading list items to text file on macos
import os
import plistlib
INPUT_FILE = os.path.join(os.environ['HOME'], 'Library/Safari/Bookmarks.plist')
OUTPUT_FILE = 'readinglist.txt'
# Load and parse the Bookmarks file
with open(INPUT_FILE, 'rb') as plist_file:
plist = plistlib.load(plist_file)