From f20c34b6f66ff85f424347cc7b269ecdb9c51223 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 9 Mar 2011 13:57:23 -0700 Subject: [PATCH] Oakland North by noah --- resources/recipes/oakland_north.recipe | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 resources/recipes/oakland_north.recipe diff --git a/resources/recipes/oakland_north.recipe b/resources/recipes/oakland_north.recipe new file mode 100644 index 0000000000..0ad165be40 --- /dev/null +++ b/resources/recipes/oakland_north.recipe @@ -0,0 +1,23 @@ +from calibre.web.feeds.news import BasicNewsRecipe +import re + +class AdvancedUserRecipe1299640653(BasicNewsRecipe): + title = u'Oakland North' + oldest_article = 30 + max_articles_per_feed = 100 + + language = 'en' + __author__ = 'noah' + description = 'Oakland North' + category = 'news' + no_stylesheets = True + + masthead_url = 'http://oaklandnorth.net/wp-content/themes/oaklandnorth/images/masthead.png' + + keep_only_tags = [dict(name='div', attrs={'class':re.compile(r'\bpost\b(?!-)', re.IGNORECASE)})] + + remove_tags_after = [dict(name='p', attrs={'class':'post-postscript'})] + + remove_tags = [dict(name='p', attrs={'class':'post-postscript'})] + + feeds = [(u'All Headlines', u'http://oaklandnorth.net/feed/')]