From d7adc0758e1751a4687e5a8e8f6173b7af22d7ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20D=C5=82ugosz?= Date: Mon, 19 Oct 2015 23:11:39 +0200 Subject: [PATCH] articles and feeds without date - now way to figure out when content emerged --- recipes/icons/mojegotowanie.png | Bin 215 -> 0 bytes recipes/mojegotowanie.recipe | 50 -------------------------------- 2 files changed, 50 deletions(-) delete mode 100644 recipes/icons/mojegotowanie.png delete mode 100644 recipes/mojegotowanie.recipe diff --git a/recipes/icons/mojegotowanie.png b/recipes/icons/mojegotowanie.png deleted file mode 100644 index ee47f4b1737c3fcad5ae4f9bfc4ef051316c7704..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 215 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|^E_P~Ln>}1SIj-=Ep%wzLwi1k zs|+c%GhXngFnB6RuX}j>q-g%9Bm3m%{8fvW=?E~Xxp{#BD3!wNaCQA=miy(Fhu6Ah zG(>!Q|2usL8^`0^l|mhjD<7WT6*WP+Pv7}^z@mm&<~d7x*-TniIZia;&F4z3yKn8g zrtQ1#H3eJNAeW4W#`V&(>+Sb>G_j>@7ktWY@oQVTRzS<0Bkn>>49;S&Ch>mD{seR> NgQu&X%Q~loCIBsnQnCO5 diff --git a/recipes/mojegotowanie.recipe b/recipes/mojegotowanie.recipe deleted file mode 100644 index 7981eb0042..0000000000 --- a/recipes/mojegotowanie.recipe +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env python2 - -__license__ = 'GPL v3' -__copyright__ = 'MrStefan, teepel' - -''' -www.mojegotowanie.pl -''' - -from calibre.web.feeds.news import BasicNewsRecipe - -class mojegotowanie(BasicNewsRecipe): - title = u'Moje Gotowanie' - __author__ = 'MrStefan , teepel ' - language = 'pl' - description =u'Gotowanie to Twoja pasja? Uwielbiasz sałatki? Lubisz grillować? Przepisy kulinarne doskonałe na wszystkie okazje znajdziesz na www.mojegotowanie.pl.' - masthead_url='http://www.mojegotowanie.pl/extension/selfstart/design/self/images/top_c2.gif' - cover_url = 'http://www.mojegotowanie.pl/extension/selfstart/design/self/images/mgpl/mojegotowanie.gif' - remove_empty_feeds= True - oldest_article = 7 - max_articles_per_feed = 100 - remove_javascript=True - no_stylesheets=True - - keep_only_tags =[] - keep_only_tags.append(dict(name='div', attrs={'class' : 'content'})) - - feeds = [(u'Artykuły', u'http://mojegotowanie.pl/rss/feed/artykuly'), - (u'Przepisy', u'http://mojegotowanie.pl/rss/feed/przepisy')] - - def parse_feeds(self): - feeds = BasicNewsRecipe.parse_feeds(self) - for feed in feeds: - for article in feed.articles[:]: - if 'film' in article.title: - feed.articles.remove(article) - return feeds - - def get_article_url(self, article): - link = article.get('link') - if 'Clayout0Cset0Cprint0' in link: - return link - - def print_version(self, url): - segment = url.split('/') - URLPart = segment[-2] - URLPart = URLPart.replace('0L0Smojegotowanie0Bpl0Clayout0Cset0Cprint0C', '/') - URLPart = URLPart.replace('0I', '_') - URLPart = URLPart.replace('0C', '/') - return 'http://www.mojegotowanie.pl/layout/set/print' + URLPart