Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Generate a list of Reading List URLs Web Browsers
Perhaps you use Safari's Reading List feature to save various Web articles for later reading. But maybe your Reading List is so overwhelming that you'd prefer to export a simple list of URLs to keep track of—or to open in an app besides Safari.

Over at StackExchange, Rob Mathers offers up a quick Python script to do just that. Copy Mathers's Python script into a plain text document, and name it something like Next, make it executable; you can use the Terminal command chmod +x

Run the script—which loops through the proper section of the ~/Library/Safari/Bookmarks.plist file where those URLs are stored—and it will generate a list of the URLs in question. If you'd like to save the URLs to a file, use a command like ./ > urls.txt to do so.
  • Currently 1.92 / 5
  You rated: 2 / 5 (12 votes cast)

Generate a list of Reading List URLs | 2 comments | Create New Account
Click here to return to the 'Generate a list of Reading List URLs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Generate a list of Reading List URLs
Authored by: Lri on Jul 16, '13 05:28:06AM

Another option using the plist Ruby gem:

sudo gem install plist;plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist|ruby -rubygems -e 'require "plist";puts Plist.parse_xml(["Children"].select{|e|e["Title"]==""}[0]["Children"].map{|e|e["URLString"]}'

Or if you don't have other bookmarks:

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

[ Reply to This | # ]
Generate a list of Reading List URLs
Authored by: xavier123456789z on Aug 26, '14 07:26:28AM

Is there a way to discern from the "Unread" links and "All" links please?

[ Reply to This | # ]