From 7d22f36134de6911aea7d407452b76c218557f47 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Dec 2009 08:59:15 -0700 Subject: [PATCH] New recipe for The Clarion Ledger by cr4zyd --- resources/recipes/clarion_ledger.recipe | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 resources/recipes/clarion_ledger.recipe diff --git a/resources/recipes/clarion_ledger.recipe b/resources/recipes/clarion_ledger.recipe new file mode 100644 index 0000000000..e36cae652e --- /dev/null +++ b/resources/recipes/clarion_ledger.recipe @@ -0,0 +1,20 @@ +from calibre.web.feeds.news import BasicNewsRecipe + +class ClarionLedger(BasicNewsRecipe): + title = u'Clarion Ledger' + oldest_article = 7 + max_articles_per_feed = 100 + no_stylesheets = True + language = 'en' + __author__ = 'cr4zyd' + + feeds = [(u'Local News', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS01'), (u'Breaking News', u'http://www.clarionledger.com/apps/pbcs.dll/section?Category=RSS'), (u'Sports', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS02'), (u'Business', u'http://www.clarionledger.com/apps/pbcs.dll/oversikt?Category=RSS03')] + + keep_only_tags = [dict(name='div', attrs={'class':'article-headline'}), + dict(name='div', attrs={'class':'article-bodytext'})] + remove_tags = [dict(name=['img','script','li']), + dict(name='p', attrs={'class':'ratingbyline'}), + dict(name='div', attrs={'class':'article-tools'}), + dict(name='div', attrs={'class':'article-pagination article-pagination-top'}), + dict(name='div', attrs={'class':'article-pagination article-pagination-bottom'}), + dict(name='div', attrs={'class':'articleflex-container'})]