import praw
import time

r = praw.Reddit('Comment parser example by u/_Daimon_')
multi_reddits = r.get_subreddit('gif+pics')

base = multi_reddits.get_comments(limit=1).next()

print "Base=", base.fullname

time.sleep(4)


while True:
    mrc = multi_reddits.get_comments(limit=40, params={"before": base.fullname})
    for com in mrc:
        print com.fullname, com
        if com.created_utc > base.created_utc:
            base = com
    time.sleep(1)

Add optimized bot. Reduce the number of queries
bot: Add optimized bot. Reduce the number of queries

Signed-off-by: Valentin Ilie <2677a908e9239f6354e2990b8c11cc5ac25eaf8a@gmail.com>
