From 276b6d32d40f4d9db9f68265ace8fa4368421ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Fri, 7 Oct 2016 12:32:36 +0200 Subject: [PATCH] recipes: remove astroflesz - this site is no more --- recipes/astroflesz.recipe | 30 ------------------------------ recipes/icons/astroflesz.png | Bin 739 -> 0 bytes 2 files changed, 30 deletions(-) delete mode 100644 recipes/astroflesz.recipe delete mode 100644 recipes/icons/astroflesz.png diff --git a/recipes/astroflesz.recipe b/recipes/astroflesz.recipe deleted file mode 100644 index d44aa994e5..0000000000 --- a/recipes/astroflesz.recipe +++ /dev/null @@ -1,30 +0,0 @@ -# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:fdm=marker:ai -from calibre.web.feeds.news import BasicNewsRecipe - - -class Astroflesz(BasicNewsRecipe): - title = u'Astroflesz' - oldest_article = 7 - __author__ = 'fenuks' - description = u'astroflesz.pl - to portal poświęcony astronomii. Informuje zarówno o aktualnych wydarzeniach i odkryciach naukowych, jak również zapowiada ciekawe zjawiska astronomiczne' # noqa - category = 'astronomy' - language = 'pl' - cover_url = 'http://www.astroflesz.pl/templates/astroflesz/images/logo/logo.png' - ignore_duplicate_articles = {'title', 'url'} - max_articles_per_feed = 100 - no_stylesheets = True - use_embedded_content = False - remove_empty_feeds = True - remove_attributes = ['style'] - keep_only_tags = [dict(id="k2Container")] - remove_tags_after = dict(name='div', attrs={'class': 'itemLinks'}) - remove_tags = [dict(name='div', attrs={ - 'class': ['itemLinks', 'itemToolbar', 'itemRatingBlock']})] - feeds = [(u'Wszystkie', u'http://astroflesz.pl/?format=feed')] - - def postprocess_html(self, soup, first_fetch): - t = soup.find(attrs={'class': 'itemIntroText'}) - if t: - for i in t.findAll('img'): - i['style'] = 'float: left; margin-right: 5px;' - return soup diff --git a/recipes/icons/astroflesz.png b/recipes/icons/astroflesz.png deleted file mode 100644 index 2a0f5c2d878d4112a14d2c82775bcd2196ba5d9d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 739 zcmV<90v!E`P)76M=d5CVi-K}-Nk zZMl^~TPUrilx|Ni?6U1{x7~KH<7sP1oXo>HbLN}*=9@!=6B_mqryy40Rq#X;KWqo> zQ^uZo%Y@mv;iDX6ERxhBycWu3<^d|522O_lpBqK*n!62VI~hMX$@pU;cAKBxI;0V& zM0mg$BANumiR*5%Va#-+LO;Fc!hPtp_N1=8yrrMX04=}~Bklwk#L7_~2*ksp`Io6r zS5fnFX~)fLaFT`voA>;^^1{cJD|;lq;yjG8`Y23{*ml|dL)T&aLTvi>QIrXCS#DMB z!&hF^6%@bem@y_*AmcKX0#}&xM0vs!ila$gZ1l2ySm%x;@I#Q5N*cPy%#K1`<Z5o1&`CfSb| zBBeoxVfAixOGHp{G@*iiaJFe=p|)q@R#oHKqUZR)N`OTV#^pW4608h!o9+iSpS@Iy zPC+CoJ^IjU^+icmaiG|x(%NgU>M22@1x!^rWHLl{BfNV5earloI|J~sck*0OnZ+H( zooCkfFFva}bEl-NsRtz#Ka=)R0)cT@mM(*-w7DZG7c`; zzfAsK+uh&xQ<#k_mQ#y z#7X)ALv`2avNM2rV$#P+@KT~{_~DeYXn9a*s(_mC6u zW>0i=eR