mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Recipe for heise (thanks to Oliver Niesner)
This commit is contained in:
parent
99bf65e171
commit
45afc46f33
@ -16,7 +16,7 @@ recipe_modules = [
|
|||||||
'jpost', 'jutarnji', 'nasa', 'reuters', 'spiegelde', 'wash_post', 'zeitde',
|
'jpost', 'jutarnji', 'nasa', 'reuters', 'spiegelde', 'wash_post', 'zeitde',
|
||||||
'blic', 'novosti', 'danas', 'vreme', 'times_online', 'the_scotsman',
|
'blic', 'novosti', 'danas', 'vreme', 'times_online', 'the_scotsman',
|
||||||
'nytimes_sub', 'security_watch', 'cyberpresse', 'st_petersburg_times',
|
'nytimes_sub', 'security_watch', 'cyberpresse', 'st_petersburg_times',
|
||||||
'clarin', 'financial_times'
|
'clarin', 'financial_times', 'heise'
|
||||||
]
|
]
|
||||||
|
|
||||||
import re, imp, inspect, time, os
|
import re, imp, inspect, time, os
|
||||||
|
41
src/calibre/web/feeds/recipes/heise.py
Normal file
41
src/calibre/web/feeds/recipes/heise.py
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
__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
|
||||||
|
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='p', attrs={'class':'news_option'}),
|
||||||
|
dict(name='p', attrs={'class':'news_navi'}),
|
||||||
|
dict(name='p', attrs={'class':'news_foren'})]
|
||||||
|
remove_tags_after = [dict(name='p', attrs={'class':'news_foren'})]
|
||||||
|
|
||||||
|
feeds = [ ('heise', 'http://www.heise.de/newsticker/heise.rdf') ]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user