mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Update fluter
This commit is contained in:
parent
33bc00beb2
commit
29d3174044
@ -1,3 +1,8 @@
|
|||||||
|
##
|
||||||
|
## Written: 2013-02-05
|
||||||
|
## Version: v4.1
|
||||||
|
## Last update: 2013-02-05 V3, 2020-07-05 v4, 2023-06-16 v4.1
|
||||||
|
##
|
||||||
__license__ = 'GPL v3'
|
__license__ = 'GPL v3'
|
||||||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||||
|
|
||||||
@ -7,24 +12,33 @@ Fetch fluter.de
|
|||||||
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
|
||||||
class AdvancedUserRecipe1313693926(BasicNewsRecipe):
|
class AdvancedUserRecipe1313693926(BasicNewsRecipe):
|
||||||
|
|
||||||
title = u'Fluter'
|
title = u' fluter. '
|
||||||
description = 'fluter.de Magazin der Bundeszentrale für politische Bildung/bpb'
|
description = 'fluter.de Magazin der Bundeszentrale für politische Bildung/bpb'
|
||||||
language = 'de'
|
language = 'de'
|
||||||
encoding = 'UTF-8'
|
encoding = 'UTF-8'
|
||||||
|
|
||||||
__author__ = 'Armin Geller' # 2013-02-05 V3
|
__author__ = 'Armin Geller' # 2013-02-05 V3
|
||||||
|
|
||||||
oldest_article = 7
|
oldest_article = 14
|
||||||
max_articles_per_feed = 50
|
max_articles_per_feed = 50
|
||||||
|
auto_cleanup = False
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
(u'Inhalt:', u'http://www.fluter.de/de/?tpl=907'),
|
(u'Inhalt:', u'https://www.fluter.de/rss.xml')
|
||||||
]
|
]
|
||||||
|
|
||||||
extra_css = '.cs_img {margin-right: 10pt;}'
|
keep_only_tags = [
|
||||||
|
dict(name='article', attrs={'class':'node node-article block fullWidth stage'})
|
||||||
|
]
|
||||||
|
|
||||||
|
remove_tags = [
|
||||||
|
dict(name='h2', attrs={'class':'element-invisible'})
|
||||||
|
]
|
||||||
|
|
||||||
|
extra_css = '''
|
||||||
|
.field-group-format, .group_additional_info, .additional-info {display: inline-block; min-width: 8rem; text-align: center}
|
||||||
|
'''
|
||||||
|
|
||||||
|
|
||||||
def print_version(self, url):
|
|
||||||
return url + '?tpl=1260'
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user