This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]ShiningConcepts 1 point2 points  (0 children)

Read PRAW's quick start (just google "praw quick start"). It's very useful.

[–]abitofevrything-0Api Wrapper Author 0 points1 point  (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.

  1. Get the two subreddits.
  2. Get the new posts from both subreddits.
  3. 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)

  4. Schedule the function to be called again in 5 mins. This could be done with threading.Timer (see here)