Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 11-18-2010, 05:07 PM   #1
Artemis_A
Train reader
Artemis_A began at the beginning.
 
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 04:53 PM. Reason: wrapped recipe in code tags
Artemis_A is offline   Reply With Quote
Old 11-21-2010, 12:58 AM   #2
marbs
Zealot
marbs began at the beginning.
 
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
marbs is offline   Reply With Quote
Advert
Old 11-21-2010, 04:54 PM   #3
Artemis_A
Train reader
Artemis_A began at the beginning.
 
Posts: 10
Karma: 15
Join Date: Nov 2010
Device: Kindle3
thank you. I didn't know that. I have changed it now.
Artemis_A is offline   Reply With Quote
Reply


Forum Jump

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 04:57 AM
Recipe help kool Recipes 3 10-22-2010 03:34 PM
Recipe Help lrain5 Calibre 3 05-09-2010 10:42 PM
DRM - Allgemeine Rechte wilcox Erste Hilfe 2 04-12-2010 06:44 AM
Unutterably Silly I can haz caek NetSlut Lounge 31 09-18-2008 06:32 PM


All times are GMT -4. The time now is 06:07 AM.


MobileRead.com is a privately owned, operated and funded community.