hadynz / obsidian-kindle-plugin

Sync your Kindle notes and highlights directly into your Obsidian vault
MIT License
922 stars 52 forks source link

Feature request: iOS support #202

Open jelomu opened 1 year ago

jelomu commented 1 year ago

Hello @hadynz

I’m trying to work entirely from my iPad (actually my computer died not long ago). I haven’t been able to sync my highlights since then and was wondering if it would be complicated to add iOS compatibility to your plugin. I assume it could be useful to a lot of people.

Many thanks

robertandrews commented 1 year ago

Same here. +1.

What are the issues/reasons it can't work?

hadynz commented 1 year ago

The plugin fetches Kindle Highlights from Amazon cloud by logging in with your credentials and screen scraping. Obsidian desktop is built using Electron which allows you to easily to do the screen scraping. The mobile app does not use Electron.

So the current core method that the app uses will not work on mobile. A completely different approach would have to be thought through. So it is certainly non-trivial.

robertandrews commented 1 year ago

@jelomu I wonder if it's viable to have iOS Shortcuts scrape it and dump it in the vault folder. Difficult since it required authentication.

Maybe Drafts is an intermediary option?

I see this method of fetching highlights using Javascript. But that uses Puppeteer just as this uses Cheerio.

hadynz commented 1 year ago

The Puppeteer scraper uses Good Reads and not Amazon Cloud. The former is easy to login into via a script. The latter could require you to enter 2FA and is harder to automate.

Nevertheless, there is potentially a way to do it. Just hasn't been a priority - although I can see several people are upvoting this request now. So might be something that I will need to consider.

robertandrews commented 11 months ago

Would love this to happen. I’m kicking the tyres again. Such a good plugin, but the inability to pull from my night-time reading over coffee in the morning is hurting :-)

aignaciodc commented 5 months ago

Absolutely waiting for the same thing! My only device is my ipad - no access to a desktop/laptop to do things like this just to still do everything on ipad.