obsidian-pocket icon indicating copy to clipboard operation
obsidian-pocket copied to clipboard

Display Pocket-Highlights

Open gonzochic opened this issue 2 years ago • 5 comments

Implemented the necessary code to display highlighted areas of a pocket item. To make it work I needed to use a static CONSUMER_KEY which allows the return of the annotations-Array within the response.

Fixes: #106

TODO:

  • [ ] The ordering of the highlights should reflect the read-direction (first highlight should be the top-most highlight in the pocket item)
  • [ ] Test across devices

gonzochic avatar Dec 04 '22 10:12 gonzochic

I don't see any way to retrieve highlights with the current pocket API. Could you explain how you are able to do it with your PR?

Panky-codes avatar Aug 21 '23 09:08 Panky-codes

Yes, the official pocket api doesn't allow for that. But if you use the consumer-key I provided within the pull-request, you will magically get the highlights in the response (similar as in the web-version of pocket). Obviously, that might not be the most stable approach but it works (for now).

gonzochic avatar Aug 22 '23 11:08 gonzochic

Ah got it! Thanks for the explanation. It is a pity that they don't provide an official API for this :/

On an unrelated note, I am considering moving to omnivore as it provides everything I need. The team also provides obsidian integration which can import highlights (plugin), etc. And most importantly, it is open source as well!

Panky-codes avatar Aug 22 '23 11:08 Panky-codes

Tbh, I canceled my pocket subscription and migrated over to Readwise. The reader tool (which is in beta) is superb and the Obsidian integration is really good + there is a ChatGPT 3.5 integration to summarize articles. It is a bit more pricy but it is totally worth it. My workflow was: tagging the article, reading it (and highlighting) and then take additional notes in obsidian.

Regarding this project here, it means I won't need this plugin anymore.

gonzochic avatar Aug 22 '23 12:08 gonzochic

Thanks for the information about readwise.

I hope to get there with omnivore and cancel my subscription with pocket as well.

Panky-codes avatar Aug 22 '23 13:08 Panky-codes