From b78885e01fe344c71227b31fa48e92b0850c5c80 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 17 Sep 2013 11:57:03 +0530 Subject: [PATCH] Sage News - Opinion by Brian Hahn Fixes #1226420 [[ENHANCEMENT] New Publication Recipe - The Sage News - Opinion](https://bugs.launchpad.net/calibre/+bug/1226420) --- recipes/sage_news_opinion.recipe | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 recipes/sage_news_opinion.recipe diff --git a/recipes/sage_news_opinion.recipe b/recipes/sage_news_opinion.recipe new file mode 100644 index 0000000000..2a98053c2e --- /dev/null +++ b/recipes/sage_news_opinion.recipe @@ -0,0 +1,35 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class AdvancedUserRecipe1292550626(BasicNewsRecipe): + title = 'The Sage News - Opinion' + __author__ = 'Brian Hahn' + description = 'News without boundaries, Opinion' + oldest_article = 200 + max_articles_per_feed = 150 + no_stylesheets = True + #delay = 1 + use_embedded_content = False + publisher = 'The Sage News Network' + category = 'News, Alberta, Canada' + language = 'en_CA' + encoding = 'iso-8859-1' + cover_url = 'http://www.sagenews.ca/images/opinion-cover.jpg' + remove_tags_before = dict(id='ContentPanel') + remove_tags_after = dict(id='ContentPanel') + remove_tags = [dict(name='div', attrs={'id':'BottomAds'}),dict(name='div', attrs={'id':'moreStories'}),dict(name='div', attrs={'id':'StoryNavigation'})] + extra_css = 'img { margin:5px }' + feeds = [ +('Editorial Comment', 'http://www.sagenews.ca/Editorial%20Comment.rss'), +('Grumpy Old Man', 'http://www.sagenews.ca/Grumpy%20Old%20Man.rss'), +('Bad Girl', 'http://www.sagenews.ca/Bad%20Girl.rss'), +('Around the Edges with Dixie', 'http://www.sagenews.ca/Around%20the%20Edges%20with%20Dixie.rss'), +('Man Vs. World', 'http://www.sagenews.ca/Man%20Vs.%20World.rss'), +('Opinion World', 'http://www.sagenews.ca/Opinion-World.rss'), +('Opinion Politics', 'http://www.sagenews.ca/Opinion-Politics.rss'), +('Opinion Justice', 'http://www.sagenews.ca/Opinion-Justice.rss'), +('Opinion Health', 'http://www.sagenews.ca/Opinion-Health.rss'), +('Opinion Environment', 'http://www.sagenews.ca/Opinion-Environment.rss'), +('Opinion Living', 'http://www.sagenews.ca/Opinion-Living.rss'), +('Opinion Sports', 'http://www.sagenews.ca/Opinion-Sports.rss'), +('Opinion Business', 'http://www.sagenews.ca/Opinion-Business.rss'), +]