Comments (6)
Thanks a lot. all_annotations = zot.everything(zot.items(itemType="annotation"))
seems to return all annotations as you suggested. I was not using everything()
func properly before.
from pyzotero.
Yep, this is the tracking issue: zotero/dataserver#113.
In the mean time, retrieving annotations using items(itemType='annotation')
for an initial dump (which you could dump to JSON along with the library version), and then items(itemType='annotation, since=library_version)
to get updates is a bit convoluted, but will work: retrieved annotations have a parentItem
key in data
that you can use for matching. You then also have to rebuild the annotation images from the raw data (easy in case of rects, more complicated for freehand shapes)…
from pyzotero.
This is really a question for the Zotero Web API maintainers: I'm not aware of any Web API methods that allow retrieval of the annotations. The google group is probably the best place to ask: https://groups.google.com/g/zotero-dev
If there are methods available, I'll add them to Pyzotero.
from pyzotero.
Thanks for your quick reply.
I further looked at this issue. Zotero beta stores annotations and highlights in their database as opposed to saving them in the PDF files itself. These new annotations are available in Zotero's new PDF editor.
As per following discussion (https://forums.zotero.org/discussion/90753/zotero-beta-integration-with-external-note-taking-tools), web API access to all annotations made in the new PDF editor is available even now. However, annotations aren't yet documented in the web API docs, even though Zotero itself syncs them via the API as a new item type.
Thanks again
from pyzotero.
How can I retrieve all annotations? Calling items(itemType="annotation")
returns 100 items only. Even passing limit
with a higher number than 100 still returns 100 annotations.
When calling count_items()
, I can see that the number increases when I'm adding a new annotations, and I can see the new annotation when calling items(itemType="annotation") as first items. However, I'm not able to retrieve older annotations to start with!!
from pyzotero.
from pyzotero.
Related Issues (20)
- Missing git tag for 1.5.3 HOT 2
- How can I access the link of an attachment file in Zotero and update it? HOT 4
- Using search/request parameters HOT 2
- Software itemType HOT 2
- Wrong documentation for combining tags via logical "OR" operator?
- Using collection_items function to retrieve more than 100 items HOT 2
- Moving Collections from my library to group library HOT 2
- How to access my notes from zotero?
- Efficiently fetch attachments by path HOT 8
- Bad Gateway errors HOT 5
- .txt files in attachment are dumped in an unreadable format HOT 4
- dump and file methods can't find files. item calls work fine. HOT 2
- Markdown formatting and line breaks not recognized when creating notes HOT 3
- switch to httpx as the underlying HTTP library HOT 1
- Websockets / Streaming HOT 2
- Pyzotero.dump() not working. Response: Not found HOT 3
- The first 9 items repeat themselves HOT 1
- 1.5.20: invalid pyproject.toml config HOT 2
- How to adapt pyzotero to use local API server? HOT 2
- Locale seems to get ignored HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyzotero.