|
|
#1 |
|
Train reader
![]() Posts: 10
Karma: 15
Join Date: Nov 2010
Device: Kindle3
|
Recipe for Hannoversche Allgemeine (HAZ)
This recipe has been tested for a few weeks on Kindle and Kobo. It seems to work fine. If ypu have any hints for improvements, please let me know.
ENJOY! Code:
class AdvancedUserRecipe1287519083(BasicNewsRecipe):
title = u'Hannoversche Allgemeine Zeitung'
oldest_article = 1
max_articles_per_feed = 30
publisher = 'Madsack'
language = 'de'
no_stylesheets = True
feeds = [
#(u'Schlagzeilen', u'http://www.haz.de/rss/feed/haz_schlagzeilen'),
(u'Politik', u'http://www.haz.de/rss/feed/haz_politik'),
(u'Wirtschaft', u'http://www.haz.de/rss/feed/haz_wirtschaft'),
(u'Panorama', u'http://www.haz.de/rss/feed/haz_panorama'),
(u'Wissen', u'http://www.haz.de/rss/feed/haz_wissen'),
(u'Kultur', u'http://www.haz.de/rss/feed/haz_kultur'),
(u'Sp\xe4tvorstellung', u'http://www.haz.de/rss/feed/haz_spaetvorstellung'),
(u'Hannover & Region', u'http://www.haz.de/rss/feed/haz_hannoverregion'),
(u'Netzgefl\xfcster', u'http://www.haz.de/rss/feed/haz_netzgefluester'),
(u'Meinung', u'http://www.haz.de/rss/feed/haz_meinung'),
(u'ZiSH', u'http://www.haz.de/rss/feed/haz_zish'),
(u'Medien', u'http://www.haz.de/rss/feed/haz_medien'),
#(u'Sport', u'http://www.haz.de/rss/feed/haz_sport'),
#(u'Hannover 96', u'http://www.haz.de/rss/feed/haz_hannover96')
]
remove_tags_before =dict(id='modul_artikel')
remove_tags_after =dict(id='articlecontent')
remove_tags = dict(id='articlesidebar')
remove_tags = [
dict(name='div', attrs={'class':['articlecomment',
'articlebookmark', 'teaser_anzeige', 'teaser_umfrage',
'navigation', 'subnavigation']})
]
Last edited by Artemis_A; 11-21-2010 at 05:53 PM. Reason: wrapped recipe in code tags |
|
|
|
|
|
#2 |
|
Zealot
![]() Posts: 122
Karma: 10
Join Date: Jul 2010
Device: nook
|
if you want any one to be able to use it you need to wrap the text in code tags. its the small # icon above here
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Train reader
![]() Posts: 10
Karma: 15
Join Date: Nov 2010
Device: Kindle3
|
thank you. I didn't know that. I have changed it now.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Recipe works when mocked up as Python file, fails when converted to Recipe | ode | Recipes | 7 | 09-04-2011 05:57 AM |
| Recipe help | kool | Recipes | 3 | 10-22-2010 04:34 PM |
| Recipe Help | lrain5 | Calibre | 3 | 05-09-2010 11:42 PM |
| DRM - Allgemeine Rechte | wilcox | Erste Hilfe | 2 | 04-12-2010 07:44 AM |
| Unutterably Silly I can haz caek | NetSlut | Lounge | 31 | 09-18-2008 07:32 PM |