mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Recipe for Sueddeutsche by Oliver Niesner
This commit is contained in:
parent
42861e9b36
commit
d724f09059
BIN
src/calibre/gui2/images/news/ftd.png
Normal file
BIN
src/calibre/gui2/images/news/ftd.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 383 B |
BIN
src/calibre/gui2/images/news/heise.png
Normal file
BIN
src/calibre/gui2/images/news/heise.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 636 B |
BIN
src/calibre/gui2/images/news/security_watch.png
Normal file
BIN
src/calibre/gui2/images/news/security_watch.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.1 KiB |
BIN
src/calibre/gui2/images/news/sueddeutsche.png
Normal file
BIN
src/calibre/gui2/images/news/sueddeutsche.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 901 B |
BIN
src/calibre/gui2/images/news/zdnet.png
Normal file
BIN
src/calibre/gui2/images/news/zdnet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 592 B |
@ -4,7 +4,7 @@ class SecurityWatch(BasicNewsRecipe):
|
||||
title = u'securitywatch'
|
||||
description = 'security news'
|
||||
timefmt = ' [%d %b %Y]'
|
||||
__author__ = 'Oliver'
|
||||
__author__ = 'Oliver Niesner'
|
||||
no_stylesheets = True
|
||||
oldest_article = 14
|
||||
max_articles_per_feed = 100
|
||||
|
58
src/calibre/web/feeds/recipes/recipe_sueddeutsche.py
Normal file
58
src/calibre/web/feeds/recipes/recipe_sueddeutsche.py
Normal file
@ -0,0 +1,58 @@
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
|
||||
|
||||
'''
|
||||
Fetch sueddeutsche.
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
|
||||
class Sueddeutsche(BasicNewsRecipe):
|
||||
|
||||
title = u'Sueddeutsche'
|
||||
description = 'News from Germany'
|
||||
__author__ = 'Oliver Niesner'
|
||||
use_embedded_content = False
|
||||
timefmt = ' [%d %b %Y]'
|
||||
max_articles_per_feed = 40
|
||||
no_stylesheets = True
|
||||
encoding = 'latin1'
|
||||
remove_tags_after = [dict(name='div', attrs={'class':'artikelBox navigatorBox'})]
|
||||
#dict(name='table', attrs={'class':'bgf2f2f2 absatz print100'})]
|
||||
|
||||
remove_tags = [dict(name='div', attrs={'class':'bannerSuperBanner'}),
|
||||
dict(name='div', attrs={'class':'bannerSky'}),
|
||||
dict(name='div', attrs={'class':'footerLinks'}),
|
||||
dict(name='div', attrs={'class':'seitenanfang'}),
|
||||
dict(name='td', attrs={'class':'mar5'}),
|
||||
dict(name='table', attrs={'class':'pageAktiv'}),
|
||||
dict(name='table', attrs={'class':'xartable'}),
|
||||
dict(name='table', attrs={'class':'wpnavi'}),
|
||||
dict(name='table', attrs={'class':'bgcontent absatz'}),
|
||||
dict(name='table', attrs={'class':'footer'}),
|
||||
dict(name='table', attrs={'class':'artikelBox'}),
|
||||
dict(name='table', attrs={'class':'kommentare'}),
|
||||
dict(name='table', attrs={'class':'pageBoxBot'}),
|
||||
dict(name='div', attrs={'class':'artikelBox navigatorBox'}),
|
||||
dict(name='div', attrs={'class':'similar-article-box'}),
|
||||
dict(name='div', attrs={'class':'videoBigHack'}),
|
||||
dict(name='td', attrs={'class':'artikelDruckenRight'}),
|
||||
dict(name='span', attrs={'class':'hidePrint'}),
|
||||
dict(id='headerLBox'),
|
||||
dict(id='rechteSpalte'),
|
||||
dict(id='newsticker-list-small'),
|
||||
dict(id='ntop5'),
|
||||
dict(id='ntop5send'),
|
||||
dict(id='ntop5commented'),
|
||||
dict(id='nnav-bgheader'),
|
||||
dict(id='nnav-headerteaser'),
|
||||
dict(id='nnav-head'),
|
||||
dict(id='nnav-top'),
|
||||
dict(id='nnav-logodiv'),
|
||||
dict(id='nnav-logo'),
|
||||
dict(id='nnav-oly'),
|
||||
dict(id='readcomment')]
|
||||
|
||||
feeds = [ (u'Sueddeutsche', u'http://www.sueddeutsche.de/app/service/rss/alles/rss.xml') ]
|
||||
|
Loading…
x
Reference in New Issue
Block a user