Comments (9)
I copied the wrong output URL, but the situation is the same: https://api.zotero.org/users/3/items/top?content=json&start=50
from pyzotero.
I wasn't getting a 403, but it was still falling over, due to an unrelated bug. Can you try again using the dev
branch?
from pyzotero.
Tried again with the dev branch and still encountered a 403.
from pyzotero.
I can't reproduce this, running v0.9.7 (the latest version on PyPI). I just tried again, and retrieved all 606 items in my library.
Are you running Python 2.7?
from pyzotero.
Yes, running 0.9.7 with Python 2.7.1. The problem seems to be that when everything() gets to items.extend(self.follow()), it's just chasing down link rel="next" which in my case is https://api.zotero.org/users/3/items/top?content=json&start=50. Since no API key is appended in the next links, it fails.
from pyzotero.
I've done some more testing, omitting my API key, and the top()
call still works, even though I should be getting an immediate 403. I'll post to zotero-dev before doing anything else, but unless I'm missing something obvious, there are two issues here:
- a simple bug in Pyzotero, causing your subsequent
top()
calls to fail (correctly, as it turns out), which should be an easy fix - some as-yet-unknown problem with my library ID, which is causing API calls to be accepted, when they should be failing with a 403.
from pyzotero.
Easily solved: 1) there's a bug in pyzotero; 2) your library is public. If you test with a private library, you'll find the bug.
from pyzotero.
Hah. That explains everything.
from pyzotero.
OK, commit c8fab2c on the dev branch should fix this.
from pyzotero.
Related Issues (20)
- HTTP response is stored in Zotero.request property
- report requests.exceptions.HTTPError: 403, when use attachment_simple() function HOT 1
- Can't retrieve groups metadata.
- Feature Request - Add tags and modify comments of annotations HOT 8
- 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 2
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.