Created
September 12, 2015 15:00
-
-
Save Bystroushaak/c8c3786ec23c6d555b65 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
# Interpreter version: python 2.7 | |
# | |
# Imports ===================================================================== | |
from reddit_filter import filter_feed | |
from reddit_filter import banned_pattern | |
# Functions & classes ========================================================= | |
def filter_programming(title, link, pub_date, description): | |
title = title.lower() | |
banned = [ | |
"swift", | |
] | |
if banned_pattern(banned, title): | |
return True | |
# Main program ================================================================ | |
if __name__ == '__main__': | |
print filter_feed("programming", filter_programming) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment