From ca3f4065386325dec09a2a38f2b018059db0a28e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Fri, 16 Oct 2015 16:09:52 +0200 Subject: [PATCH 1/4] no feed on this domain any more --- recipes/icons/mobilna.png | Bin 500 -> 0 bytes recipes/mobilna.recipe | 26 -------------------------- 2 files changed, 26 deletions(-) delete mode 100644 recipes/icons/mobilna.png delete mode 100644 recipes/mobilna.recipe diff --git a/recipes/icons/mobilna.png b/recipes/icons/mobilna.png deleted file mode 100644 index 05ae171eb9068c9c4ba3c7b2ed434836dea96218..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 500 zcmV-h{XLoFgpd7Ux+}3zP#{aIM&h{P~Oyi#Bbn&wAV^Lxe zSQ4rupmTVm7v@9`0WnSU+n5y3$oI+u%tTlOmW0CRb9rkq+knFL*x$YrW4mHgy@ZKN z27$#^c+>ac@O^6Tix(s)OokZ*=qn8P{rLfEG-V~4jDTP&lNO9$z+$i22#1;H$FCmT^}CvqlP0000 Date: Fri, 16 Oct 2015 16:45:19 +0200 Subject: [PATCH 2/4] fix Lege Artis recipe --- recipes/legeartis.recipe | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/recipes/legeartis.recipe b/recipes/legeartis.recipe index c85d81edac..f38e2ba67c 100644 --- a/recipes/legeartis.recipe +++ b/recipes/legeartis.recipe @@ -1,21 +1,19 @@ #!/usr/bin/env python2 __license__ = 'GPL v3' -__author__ = 'Mori' -__version__ = 'v. 0.1' ''' -olgierd.bblog.pl +czasopismo.legeartis.org ''' from calibre.web.feeds.news import BasicNewsRecipe class LegeArtisRecipe(BasicNewsRecipe): - __author__ = 'Mori' + __author__ = 'Mori, Tomasz D\u0142ugosz' language = 'pl' title = u'Lege Artis' publisher = u'Olgierd Rudak' - description = u'Wszystko, co chcieliby\u015bcie wiedzie\u0107 o prawie, ale wstydzicie si\u0119 zapyta\u0107' + description = u'Prawie wszystko, co chcieliby\u015bcie wiedzie\u0107 o prawie, ale wstydzili\u015bcie si\u0119 zapyta\u0107' max_articles_per_feed = 100 @@ -27,17 +25,6 @@ class LegeArtisRecipe(BasicNewsRecipe): ''' feeds = [ - (u'Lege Artis', u'http://olgierd.bblog.pl/rss/rss20.xml') + (u'Lege Artis', u'http://czasopismo.legeartis.org/feed') ] - keep_only_tags = [ - dict(name = 'div', attrs = {'class' : 'post_title'}), - dict(name = 'div', attrs = {'class' : 'post_date'}), - dict(name = 'div', attrs = {'class' : 'post_content'}) - ] - - remove_tags = [ - dict(name = 'div', attrs = {'id' : 'bb_tools'}), - dict(name = 'div', attrs = {'class' : 'post_comments'}), - dict(name = 'object', attrs = {}) - ] From 99299512f6e55e18a6401ddfcc98d612a1dc7cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Fri, 16 Oct 2015 16:57:51 +0200 Subject: [PATCH 3/4] no new content since 2014 --- recipes/icons/oclab_pl.png | Bin 502 -> 0 bytes recipes/oclab_pl.recipe | 37 ------------------------------------- 2 files changed, 37 deletions(-) delete mode 100644 recipes/icons/oclab_pl.png delete mode 100644 recipes/oclab_pl.recipe diff --git a/recipes/icons/oclab_pl.png b/recipes/icons/oclab_pl.png deleted file mode 100644 index acd0eb8cc2e00fd8e0a1777e03b6a44e93257467..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 502 zcmV zthvU32%MYwtG6xF@e^=uW@1UR|>GlH~&jQYpGAS)=`>l;q>Sv!lSbOc9 zrl_Q^y1tX5rmwo*+wWg)yn6}s2BUmO5hQlRc=*&sBzV|4fO0qAy!`y@rwBKXhNvV^ z Date: Fri, 16 Oct 2015 17:15:25 +0200 Subject: [PATCH 4/4] remove most of the garbage tags --- recipes/lifehacker_pl.recipe | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/lifehacker_pl.recipe b/recipes/lifehacker_pl.recipe index daf9ab656a..1477bfc209 100644 --- a/recipes/lifehacker_pl.recipe +++ b/recipes/lifehacker_pl.recipe @@ -22,3 +22,7 @@ class lifehacking(BasicNewsRecipe): no_stylesheets=True feeds = [(u'Lifehacker polska', u'http://feeds.feedburner.com/pl_lh')] + + keep_only_tags = [ + dict(name='header', attrs={'class': 'td-post-title'}), + dict(name='div', attrs={'class': 'td-post-content'})]