Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for submission in subreddit.get_hot(limit=1):
- comments = submission.comments
- for comment in comments:
- text = comment.body
- isMatch = any(string in text for string in wordsToMatch)
- if isMatch:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement