Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Move from Pocket to Safari Reading List and/or Google Inbox #9

Open
outlyer opened this issue Mar 22, 2018 · 0 comments
Open

Move from Pocket to Safari Reading List and/or Google Inbox #9

outlyer opened this issue Mar 22, 2018 · 0 comments

Comments

@outlyer
Copy link
Owner

outlyer commented Mar 22, 2018

For Safari Reading List

require "plist"
begin
  bookmarks_xml = `plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist`
  urls = Plist.parse_xml(bookmarks_xml)["Children"].select{|e|e["Title"]=="com.apple.ReadingList"}[0]["Children"].map{|e|e["URLString"]}
  puts urls
rescue NoMethodError => e
  puts "Reading List is empty."
end

Research further:
https://developers.google.com/gmail/api/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant