Closed emmggi closed 4 years ago
“After” in the listing API means chronologically after. In each iteration, you’re asking for all posts chronologically after the chronologically oldest post in the set, so I would expect your results.
You can use ListingWithParams to specify Reddit API arguments directly. To Reddit directly, “after” will mean “chronologically before”, and you will observe different behavior.
Thank you very much. Fixed.
I'm trying to get all the posts from a subreddit/user page.
Notice that, for instance, listing #94 is the same in all four iterations of listing posts and also with each new iteration the listing gets decreased by one post.
I think my issue is with the infinite loop but I'm not sure.
My code:
My output: