From 6a785845117b171ffb9c68f0665d50c5adc0833e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Mon, 21 Oct 2019 22:23:49 +0200 Subject: [PATCH] remove conowego recipe - no new content since June --- recipes/conowego_pl.recipe | 56 ---------------------------------- recipes/icons/conowego_pl.png | Bin 481 -> 0 bytes 2 files changed, 56 deletions(-) delete mode 100644 recipes/conowego_pl.recipe delete mode 100644 recipes/icons/conowego_pl.png diff --git a/recipes/conowego_pl.recipe b/recipes/conowego_pl.recipe deleted file mode 100644 index 4dbae4b104..0000000000 --- a/recipes/conowego_pl.recipe +++ /dev/null @@ -1,56 +0,0 @@ -from calibre.web.feeds.news import BasicNewsRecipe -from calibre.ebooks.BeautifulSoup import BeautifulSoup, Comment - - -class CoNowegoPl(BasicNewsRecipe): - title = u'conowego.pl' - __author__ = 'fenuks' - description = u'Nowy wortal technologiczny oraz gazeta internetowa. Testy najnowszych produktów, fachowe porady i recenzje. U nas znajdziesz wszystko o elektronice użytkowej !' # noqa - category = 'IT, news' - language = 'pl' - oldest_article = 7 - max_articles_per_feed = 100 - INDEX = 'http://www.conowego.pl/' - extra_css = '.news-single-img {float:left; margin-right:5px;}' - no_stylesheets = True - remove_empty_feeds = True - use_embedded_content = False - ignore_duplicate_articles = {'title', 'url'} - keep_only_tags = [ - dict(name='div', attrs={'class': 'news_list single_view'})] - remove_tags = [ - dict(name='div', attrs={'class': ['ni_bottom', 'ni_rank', 'ni_date']})] - feeds = [(u'Aktualno\u015bci', u'http://www.conowego.pl/rss/aktualnosci-5/?type=100'), (u'Gaming', u'http://www.conowego.pl/rss/gaming-6/?type=100'), - (u'Porady', u'http://www.conowego.pl/rss/porady-3/?type=100'), (u'Testy', u'http://www.conowego.pl/rss/testy-2/?type=100')] - - def preprocess_html(self, soup): - for i in soup.findAll('img'): - i.parent.insert(0, BeautifulSoup('
')) - i.insert(len(i), BeautifulSoup('
')) - self.append_page(soup, soup.body) - return soup - - def append_page(self, soup, appendtag): - tag = appendtag.find('div', attrs={'class': 'pages'}) - if tag: - nexturls = tag.findAll('a') - for nexturl in nexturls[:-1]: - soup2 = self.index_to_soup( - 'http://www.conowego.pl/' + nexturl['href']) - pagetext = soup2.find(attrs={'class': 'ni_content'}) - pos = len(appendtag.contents) - appendtag.insert(pos, pagetext) - - comments = appendtag.findAll( - text=lambda text: isinstance(text, Comment)) - for comment in comments: - comment.extract() - for r in appendtag.findAll(attrs={'class': ['pages', 'paginationWrap']}): - r.extract() - - def get_cover_url(self): - soup = self.index_to_soup('http://www.conowego.pl/magazyn/') - tag = soup.find(attrs={'class': 'ms_left'}) - if tag: - self.cover_url = self.INDEX + tag.find('img')['src'] - return getattr(self, 'cover_url', self.cover_url) diff --git a/recipes/icons/conowego_pl.png b/recipes/icons/conowego_pl.png deleted file mode 100644 index bdc772e02f9fc67b6e9cba9a1dbd0d78460527f3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 481 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbMfnE;;QR9*Bw#$rT@#D?TDybXXS1E<7k#xL>|tzkJa?1t2QkuLweWm5cT&74B0m+OJf2 zK)L9kO5s7}!o!M1Ky*X_h>8y@6(3S6KB827R1t{s56Ktql`GjVTYNySh) zp_9)g&%d0#;8Nkz>oaygoWB3jvg6OzpM169?CTBZULCvr?$n)6XYPJHbMMRf2Olmz z{&?xpr<*T-{QUd>-#;J%5`X`L(Eop6Jj<%%7tmi9JY5_^DsHhlbXpyD5cv0eLg3M3 zVYw-j9VhO1FWtNB{eM5ZC1#;B7fJT;TWeU|E0M|UyP~AcGc|R4l31DlGPwvz1>Qj2 zpEn)f*;ub|TxvrRTxy1?e*gI0=Twjh^X1d_SYYN|El|2FLRP`ME?D@s~^_h<`&G* z&iTsZr0HU7%U(Ejhq0KE)?TA0Y1+Ty);~&p%f-kv^{AU`q?*dHZ~R&(M0_