praw-dev / prawtools

A collection of tools that interact with reddit's API providing moderator utilities, subreddit statistics, and keyword alerts.
BSD 2-Clause "Simplified" License
116 stars 25 forks source link

No submissions were found. #15

Closed phloatingman closed 11 years ago

phloatingman commented 11 years ago

Everytime I try to run subreddit_stats on /r/bitcoin it gives me the following error.

"No submissions were found."

I'm using the following command subreddit_stats -d30 -vv -R phloatingman -u phloating_man bitcoin

I successfully ran it on /r/videography and /r/photography, but it doesn't work on /r/bitcoin. I'm using Ubuntu 12.10 32-bit.

Great work by the way.

bboe commented 11 years ago

The -d30 means include submissions from the last 30 days, however, there's a hidden variable which is it only includes submissions that are older than 3 days. My guess is that community receives over 1000 submissions in the three day period, hence why it shows no submissions.

Try changing to -d30 to -tmonth to get the top submissions for the month.

wtchen commented 11 years ago

This ought to be mentioned in the documentation since somebody will likely try this on /r/AdviceAnimals etc and be puzzled as to why nothing was found.

bboe commented 11 years ago

@wtchen add it :)

wtchen commented 11 years ago

Fine fine :P

phloatingman commented 11 years ago

Thanks it worked!