Skip to content

Commit 348c767

Browse files
Added 'n' param to fetch_articles method
Adding n param to fetch_articles method in order to include in request to stream/contents/[streamId] endpoint. This will be helpful to users who want to increase the number of items returned in order to preserve total API requests and not reach limit too early
1 parent 9959589 commit 348c767

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inoreader/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ def __get_stream_contents(self, stream_id, continuation=""):
172172
else:
173173
return response["items"], None
174174

175-
def fetch_articles(self, folder=None, tags=None, unread=True, starred=False, limit=None):
175+
def fetch_articles(self, folder=None, tags=None, unread=True, starred=False, limit=None, n=50):
176176
self.check_token()
177177

178178
url = urljoin(BASE_URL, self.STREAM_CONTENTS_PATH)
179179
if folder:
180180
url = urljoin(url, quote_plus(self.GENERAL_TAG_TEMPLATE.format(folder)))
181181

182-
params = {"c": str(uuid4())}
182+
params = {"n": n, "c": str(uuid4())}
183183
if unread:
184184
params["xt"] = self.READ_TAG
185185

0 commit comments

Comments
 (0)