e-alizadeh / Zotero2Readwise

A Python Library to retrieve annotations and notes from Zotero and upload them to your Readwise.
MIT License
131 stars 24 forks source link

Partial push of highlights to Readwise #40

Closed e-alizadeh closed 11 months ago

e-alizadeh commented 1 year ago

Currently, the library fetches all Zotero highlights/notes and pushes them to Readwise each time.

For efficiency and also in order to avoid any potential duplicated highlights due to either library changes or changes in Readwise de-duplication algorithm, the library should be able to push only latest highlights.

This is related to the issue #31.

EdSplendor commented 1 year ago

Are you working on this enhancement?

Would it be possible to fetch highlights/notes only from a specific Zotero Collection?

e-alizadeh commented 1 year ago

I didn't work on it since there was not enough interests for it. The other reason is that it's not a big deal IF THERE IS NOT SIGNIFICANT API change as Readwise is very good at detecting duplicates.

I took a quick look at the API, it seems possible. This actually might be simpler than the partial push of highlights. Let me check if I can get this working for you in the next few days.

e-alizadeh commented 1 year ago

@EdSplendor Sorry to be a bit late here, but I haven’t finished this yet. Unfortunately, I might not be able to work on this at the moment.

For my future self!: the related API to return Zotero collection specific items can be found here.

EdSplendor commented 1 year ago

Thanks for getting back to me. Could you push the branch you are working on? May be I could help out if I find time and try my luck... However, I'm not a very experienced coder...