Skip to content

grav/reading-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reading-list

Export Safari's reading list as html.

Nice if you want to access your reading list from a non-Apple device, eg. a Kindle.

Usage

The tool takes a plist in XML format from standard in, and outputs an html file on standard out, so you need to convert the plist file from binary with Apple's plutil:

$ plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | lein run > reading-list.html

The above one-liner will do the conversion, create the reading list as a web page, and output it to an html file.

This will generate an html file with links to all reading list entries.

I did have problems with the XML output at some point, so I used xmllint to recover only valid xml:

$ plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | xmllint --recover - 2> /dev/null | lein run > reading-list.html

Or how about putting it directly on S3:

$ plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | xmllint --recover - 2> /dev/null | lein run | aws s3 cp - s3://$S3_BUCKET/$S3_KEY --acl public-read --content-type "text/html"

Acknowledgements

Uses clj-plist for parsing the plist file.

License

Copyright © 2016 Betafunk

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.

About

Export Safari's reading list as html

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published