From 05c9ab6683fd8ea81bbe6512aa98799beba312e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Sat, 17 Oct 2015 22:47:43 +0200 Subject: [PATCH] this feed is no more --- recipes/icons/magazyn_consido.png | Bin 636 -> 0 bytes recipes/magazyn_consido.recipe | 88 ------------------------------ 2 files changed, 88 deletions(-) delete mode 100644 recipes/icons/magazyn_consido.png delete mode 100644 recipes/magazyn_consido.recipe diff --git a/recipes/icons/magazyn_consido.png b/recipes/icons/magazyn_consido.png deleted file mode 100644 index 1915e79a2a40c903eed6a8387020978d869383f3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 636 zcmV-?0)zdDP)mN*pUM2eDxP*X`DCp#r_CTkQ+f1u87v*$Wo2sZZnkzN9fW!?A?nNNQLb>|; zde0sUi+hxiQC9u+{@kVd(497vxsd|jSXWSRAWJm&%K5JSyBsi&ZZMf3(tbaD`f<;J zrms_u!c2kEw93W9w>$Rl5(>JjG@B|sj|EL0XRYsBczH0>ABqX!gjxo6wy$61a%OmY z_;_~fUS9pF#-`Ry{XLgXt0+DlJkrc2KpbOtrfk8>k=ZMk!|ch{?Q`zG0GxzmktlmQ zr@nokRWF;Qx{+_tS#59LP*CwN}Wy^ftgEs0mOj6&tJJI zfk(LjK+y<-62RObATdC20FaxQ2owV;f+FYw2?hrU0Oknw_a6Y5t8w*;Oac&%1VIlH z1W+JM0$?I4leOyTIAL?QZI1n`bGUh8k|5CXmKoDPq(>M9Gol%3_2M-*i_)6mJL$gN z^|ppd{QDb{VoU$h(UFduga6VbSm|_*VIFAH$a|mMZC$rkDufUUqBe<^7H>@4%20&Q zgIE6?Jqe~9N4FRpF-ww;>lZrr?hqi9?uh|35&ZS|*~Gx1bmEIC@HOYBk`s}hxpQOR zvQsC*qE4j&5mu{yJaeNyG}IVKuK><5&NInLNCr7#220x8y;5PBm%k?)1Ott50Kk6$ W8AQkM7jp>!0000ob diff --git a/recipes/magazyn_consido.recipe b/recipes/magazyn_consido.recipe deleted file mode 100644 index 999999518d..0000000000 --- a/recipes/magazyn_consido.recipe +++ /dev/null @@ -1,88 +0,0 @@ -#!/usr/bin/env python2 - -__license__ = 'GPL v3' - -''' -magazynconsido.pl/ -''' - -from calibre.web.feeds.news import BasicNewsRecipe -from calibre.utils.magick import Image - -class magazynconsido(BasicNewsRecipe): - title = u'Magazyn Consido' - __author__ = 'Artur Stachecki ,teepel ' - language = 'pl' - description =u'Portal dla architektów i projektantów' - masthead_url='http://qualitypixels.pl/wp-content/themes/airlock/advance/inc/timthumb.php?src=http://qualitypixels.pl/wp-content/uploads/2012/01/logotyp-magazynconsido-11.png&w=455&zc=1' - oldest_article = 7 - max_articles_per_feed = 100 - remove_javascript=True - no_stylesheets = True - use_embedded_content = False - - keep_only_tags =[] - keep_only_tags.append(dict(name = 'h1')) - keep_only_tags.append(dict(name = 'p')) - keep_only_tags.append(dict(attrs = {'class' : 'navigation'})) - remove_tags =[dict(attrs = {'style' : 'font-size: x-small;' })] - - remove_tags_after =[dict(attrs = {'class' : 'navigation' })] - - extra_css=''' img {max-width:30%; max-height:30%; display: block; margin-left: auto; margin-right: auto;} - h1 {text-align: center;}''' - - def parse_index(self): #(kk) - soup = self.index_to_soup('http://feeds.feedburner.com/magazynconsido?format=xml') - feeds = [] - articles = {} - sections = [] - section = '' - - for item in soup.findAll('item') : - section = self.tag_to_string(item.category) - if not articles.has_key(section) : - sections.append(section) - articles[section] = [] - article_url = self.tag_to_string(item.guid) - article_title = self.tag_to_string(item.title) - article_date = self.tag_to_string(item.pubDate) - article_description = self.tag_to_string(item.description) - articles[section].append( { 'title' : article_title, 'url' : article_url, 'date' : article_date, 'description' : article_description }) - - for section in sections : - if section == 'Video': - feeds.append((section, articles[section])) - feeds.pop() - else: - feeds.append((section, articles[section])) - return feeds - - def append_page(self, soup, appendtag): - apage = soup.find('div', attrs={'class':'wp-pagenavi'}) - if apage is not None: - nexturl = soup.find('a', attrs={'class':'nextpostslink'}) - soup2 = self.index_to_soup(nexturl['href']) - pagetext = soup2.findAll('p') - for tag in pagetext: - pos = len(appendtag.contents) - appendtag.insert(pos, tag) - - while appendtag.find('div', attrs={'class': ['height: 35px;', 'post-meta', 'addthis_toolbox addthis_default_style addthis_', 'post-meta-bottom', 'block_recently_post', 'fbcomments', 'pin-it-button', 'pages', 'navigation']}) is not None: - appendtag.find('div', attrs={'class': ['height: 35px;', 'post-meta', 'addthis_toolbox addthis_default_style addthis_', 'post-meta-bottom', 'block_recently_post', 'fbcomments', 'pin-it-button', 'pages', 'navigation']}).replaceWith('') - - def preprocess_html(self, soup): #(kk) - self.append_page(soup, soup.body) - return self.adeify_images(soup) - - def postprocess_html(self, soup, first): - #process all the images - for tag in soup.findAll(lambda tag: tag.name.lower()=='img' and tag.has_key('src')): - iurl = tag['src'] - img = Image() - img.open(iurl) - if img < 0: - raise RuntimeError('Out of memory') - img.type = "GrayscaleType" - img.save(iurl) - return soup