These are chat archives for praw-dev/praw

14th
Sep 2017
gforguru
@gforguru
Sep 14 2017 06:13
Hi all, newbie to PRAW/Python - couple of questions - 1) how do I get more than 100 subreddits returned from the subreddits.search("searchkeyword") call? 2) and for a particular subreddit how can I get the number of new posts and comments in a particular day/timeframe?
Bryce Boe
@bboe
Sep 14 2017 16:43
@gforguru
In [6]: len(list(reddit.subreddits.search('test', limit=1000)))
Out[6]: 498
The latter is not really possible.
You can use reddit.subreddit('...').submissions(start=timestamp, end=timestamp) to count the submissions between two times.
Cannot do the same for comments, however.
the submissions method is not 100% accurate but pretty close.