Download reading list as csv

Solution 1:

Print the URLs of bookmarks and pages on the reading list:

defaults read ~/Library/Safari/Bookmarks.plist|sed -n 's/^ *URLString = "\(.*\)";/\1/p'

Print the URL, title, date added, and preview text for reading list items as CSV:

sudo gem install plist csv;plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist|ruby -rplist -rcsv -e 'Plist.parse_xml(STDIN.read)["Children"].select{|e|e["Title"]=="com.apple.ReadingList"}[0]["Children"].each{|e|puts [e["URLString"],e["URIDictionary"]["title"],e["ReadingList"]["DateAdded"].strftime("%F %T"),e["ReadingList"]["PreviewText"]].to_csv}'