From 83f732ccedbc3e10c1d5c62914004093e56312bc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 17 Oct 2012 19:40:19 +0530 Subject: [PATCH] Remove webhosting.pl --- recipes/webhosting_pl.recipe | 46 ------------------------------------ 1 file changed, 46 deletions(-) delete mode 100644 recipes/webhosting_pl.recipe diff --git a/recipes/webhosting_pl.recipe b/recipes/webhosting_pl.recipe deleted file mode 100644 index 8ebb91c4ba..0000000000 --- a/recipes/webhosting_pl.recipe +++ /dev/null @@ -1,46 +0,0 @@ -from calibre.web.feeds.news import BasicNewsRecipe -class webhosting_pl(BasicNewsRecipe): - title = u'Webhosting.pl' - __author__ = 'fenuks' - description = 'Webhosting.pl to pierwszy na polskim rynku serwis poruszający w szerokim aspekcie tematy związane z hostingiem, globalną Siecią i usługami internetowymi. Głównym celem przedsięwzięcia jest dostarczanie przydatnej i bogatej merytorycznie wiedzy osobom, które chcą tworzyć i efektywnie wykorzystywać współczesny Internet.' - category = 'web' - language = 'pl' - cover_url='http://webhosting.pl/images/logo.png' - masthead_url='http://webhosting.pl/images/logo.png' - oldest_article = 7 - index='http://webhosting.pl' - max_articles_per_feed = 100 - no_stylesheets = True - remove_empty_feeds = True - #keep_only_tags= [dict(name='div', attrs={'class':'content_article'}), dict(attrs={'class':'paging'})] - #remove_tags=[dict(attrs={'class':['tags', 'wykop', 'facebook_button_count', 'article_bottom']})] - feeds = [(u'Newsy', u'http://webhosting.pl/feed/rss/an'), - (u'Artyku\u0142y', u'http://webhosting.pl/feed/rss/aa'), - (u'Software', u'http://webhosting.pl/feed/rss/n/12'), - (u'Internet', u'http://webhosting.pl/feed/rss/n/9'), - (u'Biznes', u'http://webhosting.pl/feed/rss/n/13'), - (u'Bezpiecze\u0144stwo', u'http://webhosting.pl/feed/rss/n/10'), - (u'Blogi', u'http://webhosting.pl/feed/rss/ab'), - (u'Programowanie', u'http://webhosting.pl/feed/rss/n/8'), - (u'Kursy', u'http://webhosting.pl/feed/rss/n/11'), - (u'Tips&Tricks', u'http://webhosting.pl/feed/rss/n/15'), - (u'Imprezy', u'http://webhosting.pl/feed/rss/n/22'), - (u'Wywiady', u'http://webhosting.pl/feed/rss/n/24'), - (u'Porady', u'http://webhosting.pl/feed/rss/n/3027'), - (u'Znalezione w sieci', u'http://webhosting.pl/feed/rss/n/6804'), - (u'Dev area', u'http://webhosting.pl/feed/rss/n/24504'), - (u"Webmaster's blog", u'http://webhosting.pl/feed/rss/n/29195'), - (u'Domeny', u'http://webhosting.pl/feed/rss/n/11513'), - (u'Praktyka', u'http://webhosting.pl/feed/rss/n/2'), - (u'Serwery', u'http://webhosting.pl/feed/rss/n/11514'), - (u'Inne', u'http://webhosting.pl/feed/rss/n/24811'), - (u'Marketing', u'http://webhosting.pl/feed/rss/n/11535')] - - def print_version(self, url): - return url.replace('webhosting.pl', 'webhosting.pl/print') - - def preprocess_html(self, soup): - for a in soup('a'): - if a.has_key('href') and 'http://' not in a['href'] and 'https://' not in a['href']: - a['href']=self.index + a['href'] - return soup \ No newline at end of file