Skip to content

Instantly share code, notes, and snippets.

@RomanVolkov
Created March 29, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RomanVolkov/61f5815fb5e87da310d02b26b5bc7bab to your computer and use it in GitHub Desktop.
Save RomanVolkov/61f5815fb5e87da310d02b26b5bc7bab to your computer and use it in GitHub Desktop.
Export Safari.app web sources list
import os
import plistlib
INPUT_FILE = os.path.join(os.environ['HOME'], 'Library/Safari/WebFeedSources.plist')
OUTPUT_FILE = 'rss.txt'
# Load and parse the Bookmarks file
with open(INPUT_FILE, 'rb') as plist_file:
plist = plistlib.load(plist_file)
print(plist)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment