mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-11-23 06:53:02 -05:00
44 lines
1.1 KiB
Plaintext
44 lines
1.1 KiB
Plaintext
__license__ = 'GPL v3'
|
|
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
|
|
|
'''
|
|
Fetch heise.
|
|
'''
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
|
|
class heiseDe(BasicNewsRecipe):
|
|
|
|
title = 'heise'
|
|
description = 'Computernews from Germany'
|
|
__author__ = 'Oliver Niesner'
|
|
use_embedded_content = False
|
|
language = 'de'
|
|
timefmt = ' [%d %b %Y]'
|
|
max_articles_per_feed = 40
|
|
no_stylesheets = True
|
|
|
|
remove_tags = [dict(id='navi_top'),
|
|
dict(id='navi_bottom'),
|
|
dict(id='logo'),
|
|
dict(id='login_suche'),
|
|
dict(id='navi_login'),
|
|
dict(id='navigation'),
|
|
dict(id='breadcrumb'),
|
|
dict(id=''),
|
|
dict(id='sitemap'),
|
|
dict(id='bannerzone'),
|
|
dict(name='span', attrs={'class':'rsaquo'}),
|
|
dict(name='div', attrs={'class':'news_logo'}),
|
|
dict(name='div', attrs={'class':'bcadv ISI_IGNORE'}),
|
|
dict(name='p', attrs={'class':'news_option'}),
|
|
dict(name='p', attrs={'class':'news_navi'}),
|
|
dict(name='div', attrs={'class':'news_foren'})]
|
|
remove_tags_after = [dict(name='div', attrs={'class':'news_foren'})]
|
|
|
|
feeds = [ ('heise', 'http://www.heise.de/newsticker/heise.rdf') ]
|
|
|
|
|
|
|