mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Improved Heise online
This commit is contained in:
parent
74d5550681
commit
33f9908100
@ -1,11 +1,11 @@
|
|||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
import re
|
|
||||||
|
|
||||||
class AdvancedUserRecipe(BasicNewsRecipe):
|
class AdvancedUserRecipe(BasicNewsRecipe):
|
||||||
|
|
||||||
title = 'heise online'
|
title = 'Heise-online'
|
||||||
description = 'News vom Heise-Verlag'
|
description = 'News vom Heise-Verlag'
|
||||||
__author__ = 'schuster'
|
__author__ = 'schuster'
|
||||||
|
masthead_url = 'http://www.heise.de/icons/ho/heise_online_logo.gif'
|
||||||
|
publisher = 'Heise Zeitschriften Verlag GmbH & Co. KG'
|
||||||
use_embedded_content = False
|
use_embedded_content = False
|
||||||
language = 'de'
|
language = 'de'
|
||||||
oldest_article = 2
|
oldest_article = 2
|
||||||
@ -14,11 +14,10 @@ class AdvancedUserRecipe(BasicNewsRecipe):
|
|||||||
remove_empty_feeds = True
|
remove_empty_feeds = True
|
||||||
timeout = 5
|
timeout = 5
|
||||||
no_stylesheets = True
|
no_stylesheets = True
|
||||||
encoding = 'utf-8'
|
|
||||||
|
|
||||||
|
|
||||||
remove_tags_after = dict(name ='p', attrs={'class':'editor'})
|
remove_tags_after = dict(name ='p', attrs={'class':'editor'})
|
||||||
remove_tags = [{'class':'navi_top_container'},
|
remove_tags = [dict(id='navi_top_container'),
|
||||||
dict(id='navi_bottom'),
|
dict(id='navi_bottom'),
|
||||||
dict(id='mitte_rechts'),
|
dict(id='mitte_rechts'),
|
||||||
dict(id='navigation'),
|
dict(id='navigation'),
|
||||||
@ -29,27 +28,31 @@ class AdvancedUserRecipe(BasicNewsRecipe):
|
|||||||
dict(id='seiten_navi'),
|
dict(id='seiten_navi'),
|
||||||
dict(id='adbottom'),
|
dict(id='adbottom'),
|
||||||
dict(id='sitemap'),
|
dict(id='sitemap'),
|
||||||
dict(name='a', href=re.compile(r'^/([a-zA-Z]+/)?')),
|
dict(name='div', attrs={'id':'sitemap'}),
|
||||||
]
|
dict(name='ul', attrs={'class':'erste_zeile'}),
|
||||||
|
dict(name='ul', attrs={'class':'zweite_zeile'}),
|
||||||
|
dict(name='div', attrs={'class':'navi_top_container'})]
|
||||||
|
|
||||||
feeds = [
|
feeds = [
|
||||||
('Newsticker', 'http://www.heise.de/newsticker/heise.rdf'),
|
('Newsticker', 'http://www.heise.de/newsticker/heise.rdf'),
|
||||||
('iX', 'http://www.heise.de/ix/news/news.rdf'),
|
('Auto', 'http://www.heise.de/autos/rss/news.rdf'),
|
||||||
('Technology Review', 'http://www.heise.de/tr/news-atom.xml'),
|
|
||||||
('mobil', 'http://www.heise.de/mobil/newsticker/heise-atom.xml'),
|
|
||||||
('Security', 'http://www.heise.de/security/news/news-atom.xml'),
|
|
||||||
('Netze', 'http://www.heise.de/netze/rss/netze-atom.xml'),
|
|
||||||
('Open Source', 'http://www.heise.de/open/news/news-atom.xml'),
|
|
||||||
('Resale ', 'http://www.heise.de/resale/rss/resale.rdf'),
|
|
||||||
('Foto ', 'http://www.heise.de/foto/rss/news-atom.xml'),
|
('Foto ', 'http://www.heise.de/foto/rss/news-atom.xml'),
|
||||||
('Autos', 'http://www.heise.de/autos/rss/news.rdf'),
|
('Mac&i', 'http://www.heise.de/mac-and-i/news.rdf'),
|
||||||
('Mac & i', 'http://www.heise.de/mac-and-i/news.rdf'),
|
('Mobile ', 'http://www.heise.de/mobil/newsticker/heise-atom.xml'),
|
||||||
|
('Netz ', 'http://www.heise.de/netze/rss/netze-atom.xml'),
|
||||||
|
('Open ', 'http://www.heise.de/open/news/news-atom.xml'),
|
||||||
|
('Resale ', 'http://www.heise.de/resale/rss/resale.rdf'),
|
||||||
|
('Security ', 'http://www.heise.de/security/news/news-atom.xml'),
|
||||||
|
('C`t', 'http://www.heise.de/ct/rss/artikel-atom.xml'),
|
||||||
|
('iX', 'http://www.heise.de/ix/news/news.rdf'),
|
||||||
|
('Mach-flott', 'http://www.heise.de/mach-flott/rss/mach-flott-atom.xml'),
|
||||||
('Blog: Babel-Bulletin', 'http://www.heise.de/developer/rss/babel-bulletin/blog.rdf'),
|
('Blog: Babel-Bulletin', 'http://www.heise.de/developer/rss/babel-bulletin/blog.rdf'),
|
||||||
('Blog: Der Dotnet-Doktor', 'http://www.heise.de/developer/rss/dotnet-doktor/blog.rdf'),
|
('Blog: Der Dotnet-Doktor', 'http://www.heise.de/developer/rss/dotnet-doktor/blog.rdf'),
|
||||||
('Blog: Bernds Management-Welt', 'http://www.heise.de/developer/rss/bernds-management-welt/blog.rdf'),
|
('Blog: Bernds Management-Welt', 'http://www.heise.de/developer/rss/bernds-management-welt/blog.rdf'),
|
||||||
('Blog: The World of IT', 'http://www.heise.de/developer/rss/world-of-it/blog.rdf'),
|
('Blog: IT conversation', 'http://www.heise.de/developer/rss/world-of-it/blog.rdf'),
|
||||||
('Blog: Kais bewegtes Web', 'http://www.heise.de/developer/rss/kais-bewegtes-web/blog.rdf')
|
('Blog: Kais bewegtes Web', 'http://www.heise.de/developer/rss/kais-bewegtes-web/blog.rdf')]
|
||||||
]
|
|
||||||
|
|
||||||
def print_version(self, url):
|
def print_version(self, url):
|
||||||
return url + '?view=print'
|
return url + '?view=print'
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user