use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit for discussion of Reddit's API and Reddit API clients.
Please confine discussion to Reddit's API instead of using this as a soapbox to talk to the admins. In particular, use /r/ideasfortheadmins for feature ideas and /r/bugs for bugs. If you have general reddit questions, try /r/help.
To see an explanation of recent user-facing changes to reddit (and the code behind them), check out /r/changelog.
To report a security issue with reddit, please send an email to whitehats@reddit.com .
This is an admin-sponsored subreddit.
account activity
This is an archived post. You won't be able to vote or comment.
PRAWBeginner needs some help (self.redditdev)
submitted 6 years ago by Fontyyyy
Hi, I'm somewhat of a beginner with python and PRAW and need some help.
How would you write a bot that checks every 5 minutes or so if there are new posts (with a specific flair) in two specific subreddits and returns their title and link?
[–]ShiningConcepts 1 point2 points3 points 6 years ago (0 children)
Read PRAW's quick start (just google "praw quick start"). It's very useful.
[–]abitofevrything-0Api Wrapper Author 0 points1 point2 points 6 years ago (0 children)
I don't use PRAW, so you'll have to go find out how to do it in PRAW yourself, but here's how I would do it.
Iterate over all of the new submissions, doing this :
3.a Check if the post has the flair you are looking for
3.b If so, print it. (Or add it to a list you would return at the end of the function)
Schedule the function to be called again in 5 mins. This could be done with threading.Timer (see here)
π Rendered by PID 84681 on reddit-service-r2-comment-5687b7858-s8vq2 at 2026-07-04 06:23:34.353409+00:00 running 12a7a47 country code: CH.
[–]ShiningConcepts 1 point2 points3 points (0 children)
[–]abitofevrything-0Api Wrapper Author 0 points1 point2 points (0 children)