Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata: total_results seems inconsistent #11

Open
MCOfficer opened this issue Mar 6, 2018 · 0 comments
Open

metadata: total_results seems inconsistent #11

MCOfficer opened this issue Mar 6, 2018 · 0 comments

Comments

@MCOfficer
Copy link

MCOfficer commented Mar 6, 2018

i am trying to get the total number of posts in my subreddit. for context, all posts in this sub are from the same user (a bot account).

the following query returns 4570 as total_results

https://api.pushshift.io/reddit/search/submission/?subreddit=spacewallsdump&metadata=true&size=0

, however, once i add the author field to the query, i get 4658:

https://api.pushshift.io/reddit/search/submission/?subreddit=spacewallsdump&metadata=true&size=0&author=scifiwalls-bot

and when i change size to 1, i get 4694:

https://api.pushshift.io/reddit/search/submission/?subreddit=spacewallsdump&metadata=true&size=1&author=scifiwalls-bot

Note that these values can be slightly off, since the bot could be submitting new posts while i am testing. however, the first two queries were tested with just a few seconds delay, and the bot doesn't submit faster than 1 post a second. a discrepancy of 100 posts in such a short time doesn't seem reasonable to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant