View Single Post
Old 02-02-2012, 06:35 AM   #3
MacLake
Junior Member
MacLake will become famous soon enoughMacLake will become famous soon enoughMacLake will become famous soon enoughMacLake will become famous soon enoughMacLake will become famous soon enoughMacLake will become famous soon enough
 
Posts: 7
Karma: 548
Join Date: Dec 2011
Device: Sony PRS-T1
I had the same idea, but the thing is: There is no extra_css in the recipe included in Calibre (yielding a grey background):

Spoiler:
__license__ = 'GPL v3'
__copyright__ = '2010, Alexander Schremmer <alex@alexanderweb.de>'

from calibre.web.feeds.news import BasicNewsRecipe

class TazRSSRecipe(BasicNewsRecipe):
title = u'Taz.de (die tageszeitung) RSS Feed - German'
__author__ = 'Alexander Schremmer'
language = 'de'
lang = 'de-DE'
oldest_article = 7
max_articles_per_feed = 100
publisher = 'taz Entwicklungs GmbH & Co. Medien KG'

conversion_options = {'publisher': publisher,
'language': lang,
}

feeds = [(u'TAZ main feed', u'http://www.taz.de/rss.xml')]
keep_only_tags = [dict(name='div', attrs={'class': 'sect sect_article'})]
remove_tags_after = dict(name='div', attrs={'class': 'rack'})
remove_tags = [
dict(name=['div'], attrs={'class': 'artikelwerbung'}),
dict(name=['ul'], attrs={'class': 'toolbar'}),]



…and there is no “no_stylesheets = True” in my very basic recipe (yielding a white background):

Spoiler:
class AdvancedUserRecipe1328000860(BasicNewsRecipe):
title = u'taz.de'
oldest_article = 7
max_articles_per_feed = 100
auto_cleanup = True

cover_url = 'http://www.taz.de/fileadmin/templates/neu/images/logo_verlagsseiten.gif'
#feeds = [(u'taz.de', u'http://taz.de/!p3270;rss/')]
feeds = [(u'TAZ main feed', u'http://www.taz.de/rss.xml')]


…and the articles on the Taz website viewed in a normal browser don’t have a grey background at all.

In addition, when I add “no_stylesheets = True” in the recipe included in Calibre, the background in the articles is still grey. So there must be something going wrong with the some of the instructions. Very strange!
MacLake is offline   Reply With Quote