From 0826df5746ad0d5f529ef1a1760924119b49ac7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sat, 23 Mar 2013 13:19:26 +0100 Subject: [PATCH] add km_blog - blog J. Korwin-Mikke --- recipes/icons/km_blog.png | Bin 0 -> 532 bytes recipes/km_blog.recipe | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 recipes/icons/km_blog.png create mode 100644 recipes/km_blog.recipe diff --git a/recipes/icons/km_blog.png b/recipes/icons/km_blog.png new file mode 100644 index 0000000000000000000000000000000000000000..22bb9350994da8415ae65895bc31d317028605c2 GIT binary patch literal 532 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbKJOS+@4BLl<6e(pbstUx|vage(c z!@6@aFM%9|WRD45bDP46hOx7_4S6Fo+k-*%fF5l&B8y z332`Z|NozVf4+SB^5)Z*KfnHb`S#_@w?AvP?WyUTbLY{MJ*TehId*2rx;<~+z3G{? zWX`%REz_3FS+%8S-kK}7?yT8$WX-lCXD(fN^6X7X*PN2JDQB+TNh#}@vIr>qWXrxI zHC=O-Y}zwr*_J!^o@_aEre@NdC$HXIx%cGAxhqFbU5TA2AOds-V@Z%-FoVOh8)+a; zlDE5yG*iNrB|r{mfk$L9koEv$x0Bg+Kt`3Pi(`ny<+a_>LWdMYoSS0;jznqHF4%jE zYtg&<)<-*9=gm(!r*eR;W3GscX^WCW=8L}vWpv-HwA_B-T=>n_I*GeW9v_WKUnjrs z?(~cWcV5Zw<9c<-;P}RKmmhtO|B_v$_Vm>1h_V!0b*3v`8QiEBhjN@7W>RdP`(kYX@0Ff`ING}JXT4>2^cGBL6;HqkaPv@$T* xE?Tq}MMG|WN@iLmNCQwc5E+CRSXvpGS(#WuGz2Y^IRn(d;OXk;vd$@?2>^25;d%f7 literal 0 HcmV?d00001 diff --git a/recipes/km_blog.recipe b/recipes/km_blog.recipe new file mode 100644 index 0000000000..106e5f30f3 --- /dev/null +++ b/recipes/km_blog.recipe @@ -0,0 +1,37 @@ + +__license__ = 'GPL v3' +__author__ = 'teepel , Artur Stachecki ' + +''' +korwin-mikke.pl/blog +''' + +from calibre.web.feeds.news import BasicNewsRecipe +import re + +class km_blog(BasicNewsRecipe): + title = u'Korwin-Mikke Blog' + __author__ = 'teepel ' + language = 'pl' + description ='WiadomoĊ›ci z bloga korwin-mikke.pl/blog' + INDEX='http://korwin-mikke.pl/blog' + remove_empty_feeds= True + oldest_article = 7 + max_articles_per_feed = 100 + remove_javascript=True + no_stylesheets=True + remove_empty_feeds = True + + feeds = [(u'blog', u'http://korwin-mikke.pl/blog/rss')] + + keep_only_tags =[] + #this line should show title of the article, but it doesnt work + keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'posts view'})) + keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'text'})) + keep_only_tags.append(dict(name = 'h1')) + + remove_tags =[] + remove_tags.append(dict(name = 'p', attrs = {'class' : 'float_right'})) + remove_tags.append(dict(name = 'p', attrs = {'class' : 'date'})) + + remove_tags_after=[(dict(name = 'div', attrs = {'class': 'text'}))]