mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
25 lines
909 B
Plaintext
25 lines
909 B
Plaintext
__license__ = 'GPL v3'
|
|
__copyright__ = '2010, Alexander Schremmer <alex@alexanderweb.de>'
|
|
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class TazRSSRecipe(BasicNewsRecipe):
|
|
title = u'Taz.de (die tageszeitung) RSS Feed - German'
|
|
__author__ = 'Alexander Schremmer'
|
|
language = 'de'
|
|
lang = 'de-DE'
|
|
oldest_article = 7
|
|
max_articles_per_feed = 100
|
|
publisher = 'taz Entwicklungs GmbH & Co. Medien KG'
|
|
|
|
conversion_options = {'publisher': publisher,
|
|
'language': lang,
|
|
}
|
|
|
|
feeds = [(u'TAZ main feed', u'http://www.taz.de/rss.xml')]
|
|
keep_only_tags = [dict(name='div', attrs={'class': 'sect sect_article'})]
|
|
remove_tags_after = dict(name='div', attrs={'class': 'rack'})
|
|
remove_tags = [
|
|
dict(name=['div'], attrs={'class': 'artikelwerbung'}),
|
|
dict(name=['ul'], attrs={'class': 'toolbar'}),]
|