Created
March 29, 2017 20:13
-
-
Save RomanVolkov/61f5815fb5e87da310d02b26b5bc7bab to your computer and use it in GitHub Desktop.
Export Safari.app web sources list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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