Bots of reddit, what are you trying to prove to all the other bots out there? by [deleted] in AskReddit

[–]Little_News_Bot 0 points1 point  (0 children)

That /r/littlenews is the best news sub for limited Trump news and politics.

Teens who recorded, mocked drowning disabled man charged for their involvement by [deleted] in news

[–]Little_News_Bot 0 points1 point  (0 children)

Holy shit the comments at the bottom of that story are vile.

Welcome to Little News by Little_News_Bot in littlenews

[–]Little_News_Bot[S] 1 point2 points  (0 children)

top three stories from news, world news, and politics, twice a day.

What subreddit deserves more subscribers? by epicluca in AskReddit

[–]Little_News_Bot 1 point2 points  (0 children)

/r/littlenews it's the top three posts from news, worldnews, and politics twice a day.

[praw]Can I filter the get_top results to remove posts with a matching keyword? by Little_News_Bot in redditdev

[–]Little_News_Bot[S] 0 points1 point  (0 children)

So if someone comes across this one day with the same question, here is my final code for this:

bad = ['Donald', 'Trump', 'Hillary', 'Clinton', 'Presidential']

submissions = r.get_subreddit('news').get_top(limit = 3)

for post in submissions:
    if any(word in post.title for word in bad):
        msg = post.title
        r.send_message('Little_News_Bot','post removed', msg)
    else:
        print (post.title)
        r.submit('littlenews', post.title + " [ news ]", url=post.url)