开发者

Is it possible to retrieve arbitrary number of items from reddit using API?

开发者 https://www.devze.com 2023-02-18 18:01 出处:网络
I am writing a small assistant app to read (well, filter/rank) /r/programming/ for me, because it has so many damn posts, and because certain area of my coding skills was getting rusty and it sounds l

I am writing a small assistant app to read (well, filter/rank) /r/programming/ for me, because it has so many damn posts, and because certain area of my coding skills was getting rusty and it sounds like good exercise.

I am getting items from "new" page of the subreddit using json api; however it only re开发者_运维技巧turns 25 items per request (which is the page size), so to retrieve items for, say, last week, I need to make dozens of requests. As the mandated request interval is 2s, it is painful.

I wonder if there's some way to retrieve more items? Query string parameters for standard html gets also work for json gets, but I cannot find one for page size.

EDIT: for posterity, the paramrter name is "limit", although that too is capped at 100


for posterity, the parameter name is "limit", although that too is capped at 100

0

精彩评论

暂无评论...
验证码 换一张
取 消