Improved Heise

This commit is contained in:
Kovid Goyal 2010-02-22 09:20:28 -07:00
parent 3da56a9859
commit fac62c1166

View File

@ -9,17 +9,15 @@ from calibre.web.feeds.news import BasicNewsRecipe
class heiseDe(BasicNewsRecipe): class heiseDe(BasicNewsRecipe):
title = 'heise' title = 'heise'
description = 'Computernews from Germany' description = 'Computernews from Germany'
__author__ = 'Oliver Niesner' __author__ = 'Oliver Niesner'
language = 'de'
use_embedded_content = False use_embedded_content = False
timefmt = ' [%d %b %Y]' timefmt = ' [%d %b %Y]'
max_articles_per_feed = 40 max_articles_per_feed = 40
no_stylesheets = True no_stylesheets = True
remove_tags = [dict(id='navi_top'), remove_tags = [dict(id='navi_top'),
dict(id='navi_bottom'), dict(id='navi_bottom'),
dict(id='logo'), dict(id='logo'),
@ -35,12 +33,10 @@ class heiseDe(BasicNewsRecipe):
dict(name='div', attrs={'class':'bcadv ISI_IGNORE'}), dict(name='div', attrs={'class':'bcadv ISI_IGNORE'}),
dict(name='p', attrs={'class':'news_option'}), dict(name='p', attrs={'class':'news_option'}),
dict(name='p', attrs={'class':'news_navi'}), dict(name='p', attrs={'class':'news_navi'}),
dict(name='p', attrs={'class':'news_foren'})] dict(name='div', attrs={'class':'news_foren'})]
remove_tags_after = [dict(name='p', attrs={'class':'news_foren'})] remove_tags_after = [dict(name='div', attrs={'class':'news_foren'})]
feeds = [ ('heise', 'http://www.heise.de/newsticker/heise.rdf') ] feeds = [ ('heise', 'http://www.heise.de/newsticker/heise.rdf') ]