diff --git a/src/calibre/gui2/images/news/telepolis.png b/src/calibre/gui2/images/news/telepolis.png new file mode 100644 index 0000000000..7b1c14b96c Binary files /dev/null and b/src/calibre/gui2/images/news/telepolis.png differ diff --git a/src/calibre/web/feeds/recipes/__init__.py b/src/calibre/web/feeds/recipes/__init__.py index 555377b653..d9ecce0e72 100644 --- a/src/calibre/web/feeds/recipes/__init__.py +++ b/src/calibre/web/feeds/recipes/__init__.py @@ -21,7 +21,7 @@ recipe_modules = ['recipe_' + r for r in ( 'linux_magazine', 'telegraph_uk', 'utne', 'sciencedaily', 'forbes', 'time_magazine', 'endgadget', 'fudzilla', 'nspm_int', 'nspm', 'pescanik', 'spiegel_int', 'themarketticker', 'tomshardware', 'xkcd', 'ftd', 'zdnet', - 'joelonsoftware', + 'joelonsoftware', 'telepolis', )] import re, imp, inspect, time, os diff --git a/src/calibre/web/feeds/recipes/recipe_telepolis.py b/src/calibre/web/feeds/recipes/recipe_telepolis.py new file mode 100644 index 0000000000..b25554431f --- /dev/null +++ b/src/calibre/web/feeds/recipes/recipe_telepolis.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python + +__license__ = 'GPL v3' +__copyright__ = '2008, Darko Miletic ' +''' +www.heise.de/tp +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class Telepolis(BasicNewsRecipe): + title = 'Telepolis' + __author__ = 'Darko Miletic' + description = 'News from Germany in German' + oldest_article = 2 + max_articles_per_feed = 100 + no_stylesheets = True + use_embedded_content = False + encoding = 'utf-8' + + html2lrf_options = [ '--comment' , description + , '--category' , 'blog,news' + ] + + keep_only_tags = [ + dict(name='table', attrs={'class':'inhalt-table'}) + ,dict(name='table', attrs={'class':'blogtable' }) + ] + remove_tags = [ + dict(name='table', attrs={'class':'img' }) + ,dict(name='img' , attrs={'src':'/tp/r4/icons/inline/extlink.gif'}) + ] + + feeds = [(u'Telepolis Newsfeed', u'http://www.heise.de/tp/news.rdf')]