From 20d7986126be326e29c655410220f23c826dffd4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 23 Jan 2010 08:56:37 -0700 Subject: [PATCH] New recipe for HotAir by Walt Anthony --- resources/images/news/hotair.png | Bin 0 -> 363 bytes resources/recipes/hotair.recipe | 41 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 resources/images/news/hotair.png create mode 100644 resources/recipes/hotair.recipe diff --git a/resources/images/news/hotair.png b/resources/images/news/hotair.png new file mode 100644 index 0000000000000000000000000000000000000000..f6b391ce3fe6bf0d574e594eb92461de359897f1 GIT binary patch literal 363 zcmV-x0hIoUP)J#NB45Jq3plXNID6-8PrM?lI6_6oiTLTM;mrZp7}1>yow z2w*n* zAK+s=PJ?c@yhtjnuavAjPXt7!Q)|s(3B6u=4hF|b*lNwiXheONSS*eM#6iGyKB;xF z(57pXB(iawRJ-xm^F%yPBuO&0R=~GXndZp2ZI}f>G#qA{A3;`s?s-6A22rQ8kDq|L z@iHp_-skgu`~qA86X0`~Y&5C?KftSr&w)4K88`!Q-NS&UQrrPwz!h*0G!1OqZWlG= zhqw$w@f}BekQl@_8+d57tY6u>#$_1Ft?SB-0rZuU&3bJG`~sG7Wa@9Z2J!#^002ov JPDHLkV1n%7lCuB+ literal 0 HcmV?d00001 diff --git a/resources/recipes/hotair.recipe b/resources/recipes/hotair.recipe new file mode 100644 index 0000000000..96ba213b94 --- /dev/null +++ b/resources/recipes/hotair.recipe @@ -0,0 +1,41 @@ +__license__ = 'GPL v3' +__copyright__ = '2010, Walt Anthony ' +''' +www.hotair.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class hotair(BasicNewsRecipe): + title = u'Hot Air' + __author__ = 'Walt Anthony' + description = "The world's first, full-service conservative Internet broadcast network" + publisher = 'Hot Air' + category = 'news, politics, USA' + oldest_article = 3 + max_articles_per_feed = 100 + summary_length = 150 + language = 'en' + encoding = 'utf-8' + use_embedded_content = False + remove_javascript = True + + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + + + + keep_only_tags = [dict(name='div', attrs={'id':'page-post'})] + + remove_tags = [dict(name=['iframe', 'small', 'embed', 'object','link','script','form'])] + + feeds = [ + ('Hot Air', 'http://feeds.feedburner.com/hotair/main'), + ('The Greenroom', 'http://feeds2.feedburner.com/hotair/greenroom') + ]