From 966b915787c777c9a4288e0fd401aab5c4db6a56 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Aug 2009 12:49:04 -0600 Subject: [PATCH] New recipe for Hungarian TechNet by Devilinside --- src/calibre/web/feeds/recipes/__init__.py | 2 +- .../web/feeds/recipes/recipe_huntechnet.py | 37 +++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 src/calibre/web/feeds/recipes/recipe_huntechnet.py diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index c27e51583f..2a5f9c7002 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -48,7 +48,7 @@ recipe_modules = ['recipe_' + r for r in ( 'the_budget_fashionista', 'elperiodico_catalan', 'elperiodico_spanish', 'expansion_spanish', 'lavanguardia', 'marca', 'kellog_faculty', 'kellog_insight', 'noaa', - '7dias', 'buenosaireseconomico', + '7dias', 'buenosaireseconomico', 'huntechnet', 'diagonales', 'miradasalsur', 'newsweek_argentina', 'veintitres', 'gva_be', 'hln', 'tijd', 'degentenaar', 'inquirer_net', 'uncrate', 'fastcompany', 'accountancyage', 'laprensa_hn', 'latribuna', diff --git a/src/calibre/web/feeds/recipes/recipe_huntechnet.py b/src/calibre/web/feeds/recipes/recipe_huntechnet.py new file mode 100644 index 0000000000..179f6d25cd --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_huntechnet.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python +# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai +from __future__ import with_statement + +__license__ = 'GPL v3' +__copyright__ = '2009, Kovid Goyal ' +__docformat__ = 'restructuredtext en' + +from calibre.web.feeds.news import BasicNewsRecipe + +class HunTechNet(BasicNewsRecipe): + title = u'TechNet' + oldest_article = 3 + description = u'Az ut\xf3bbi 3 nap TechNet h\xedrei' + language = _('Hungarian') + lang = 'hu' + encoding = 'utf-8' + __author__ = 'Devilinside' + max_articles_per_feed = 30 + timefmt = ' [%Y, %b %d, %a]' + extra_css = ''' + body{font-family:Arial,Helvetica,sans-serif; font-size:small;} + h1{font-size:large;} + ''' + remove_tags_after = dict(name='ul', attrs={'class':'cikk_bottom box'}) + remove_tags_before = dict(name='div', attrs={'id':'c-main'}) + remove_tags = [dict(name='div', attrs={'class':'wrp clr'})] + + + feeds = [(u'C\xedmlap', + u'http://www.technet.hu/rss/cimoldal/'), (u'TechTud', + u'http://www.technet.hu/rss/techtud/'), (u'PDA M\xe1nia', + u'http://www.technet.hu/rss/pdamania/'), (u'Telefon', + u'http://www.technet.hu/rss/telefon/'), (u'Sz\xe1m\xedt\xf3g\xe9p', + u'http://www.technet.hu/rss/notebook/'), (u'GPS', + u'http://www.technet.hu/rss/gps/')] +