From 9e7d4d0ed98affd3144be66faabb7d06376715e9 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 5 Mar 2015 08:21:26 +0530 Subject: [PATCH] Pando Daily by Darko Miletic Fixes #1428264 [New recipe for PandoDaily](https://bugs.launchpad.net/calibre/+bug/1428264) --- recipes/icons/pandodaily.png | Bin 0 -> 686 bytes recipes/pandodaily.recipe | 43 +++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes/icons/pandodaily.png create mode 100644 recipes/pandodaily.recipe diff --git a/recipes/icons/pandodaily.png b/recipes/icons/pandodaily.png new file mode 100644 index 0000000000000000000000000000000000000000..f571235b4ceae427ec690e8c2043381bd30780b5 GIT binary patch literal 686 zcmV;f0#W^mP)e zSad^gZEa<4bO1wgWnpw>WFU8GbZ8()Nlj2!fese{00I_CL_t(I%cYY&Op{R*hM#l4 zuRtk~M*domPDG;v7$Fo*{Yi{J7zbnAoZW~HI;#vgxRIFP=HzBfOiaK8YXU@BNQ4-m z!B#+^U_nBlfV6za!O|ksi94N~-1FwW&wY=y-MOnA;@ApY3I%alHUJ8Q2Zv}ld5rU| zEx2rpk?{z9{h!!z6xlBzC^xTNrn<6%l43Usc*{z-eWQ)#l@;o0{9HU6q~%lton77N zKEGCd!|5lzANu(kndIt)5CV9L-Q0ills7$n%*Nw{TAHY<@i9F+&&=FB?D1g)0TF(0 zZ)f|j-@Ru&xq+Yz3=Ol8SOS4_!R7-DOg=ENnb}Mws48>u1ptovec3yTqW=?coZLf2 zcF_vP2$~r#^#?GPm0uuG>qE&6*7$v(O8jR65Cp+h>_Noj7r1r(3I(=}0Me%8VK!Xk|)jsq|@8Dlh&q@c`;v0Zp7s#%@>c2EF> z=PzGzrm2xou$f3~iqWwN-i8M-rRA)}e;_DDW#0S_1W?DJH#|Vk$H8o`$XkxJwVCCT z-rD^48!cnVki)V}239V*PCA9Lb8+9TZ2=xXXvbGok#*7W@E*TbSLy6}K`NC7U^}^n zH&D;U(jvxo;XYD@MkoF*QzZJGNObBT&OLcRmF4IdCB9mA(kT+-Ur;BF9Cn@m0NqT$ UAEu#UWB>pF07*qoM6N<$g7*6>TmS$7 literal 0 HcmV?d00001 diff --git a/recipes/pandodaily.recipe b/recipes/pandodaily.recipe new file mode 100644 index 0000000000..cdfd7976c4 --- /dev/null +++ b/recipes/pandodaily.recipe @@ -0,0 +1,43 @@ +__license__ = 'GPL v3' +__copyright__ = '2015, Darko Miletic ' +''' +pando.com +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class PandoDaily(BasicNewsRecipe): + title = 'PandoDaily' + __author__ = 'Darko Miletic' + description = 'speaking truth to the new power' + publisher = 'PandoDaily' + category = 'news, politics, technology, USA, World' + oldest_article = 15 + max_articles_per_feed = 200 + no_stylesheets = True + encoding = 'utf8' + use_embedded_content = False + language = 'en' + remove_empty_feeds = True + publication_type = 'newsportal' + extra_css = """ + body{font-family: Georgia,serif } + img{margin-bottom: 0.4em; display:block} + """ + + conversion_options = { + 'comment' : description + , 'tags' : category + , 'publisher' : publisher + , 'language' : language + } + + remove_tags = [ + dict(name=['meta','link','object']), + dict(attrs={'class':'share_widgets'}) + ] + + keep_only_tags=[dict(name='h1', attrs={'class':'block'}), dict(name='div', attrs={'class':'post-content'})] + + feeds = [(u'Articles', u'http://pando.com/feed')] +