Register Guidelines E-Books Search Today's Posts Mark Forums Read

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


Thread Tools Search this Thread
Old 04-23-2012, 03:48 AM   #1
wmaurer doesn't litterwmaurer doesn't litter
Posts: 44
Karma: 100
Join Date: Oct 2007
Device: Nook Simple Touch, HTC Desire
Recipe help please


I have a simple recipe that's not working the way I want:

class DerBund(BasicNewsRecipe):
    title = ' Nichts verpassen'
    description = 'Nachrichten, Analysen, Bilder und Video zu Politik, Wirtschaft, Sport, Kultur, Wissen, Technik, Auto und mehr.'
    oldest_article = 7
    max_articles_per_feed = 100
    timefmt = ' [%a, %d %b %Y]'
    keep_only_tags = dict(id='singleLeft')
    remove_tags_after = dict(attrs={'class':'publishedDate'})
    remove_tags =  [dict(id=['contentbox', 'metaLine', 'singleRight', 'singleSmallRight']), dict(name=['script', 'noscript', 'style'])]
    no_stylesheets = True
    feeds = [('Front', '')]

    def print_version(self, url):
        return url + "/print.html"

Basically I'm trying to get content from only the singleLeft div, but for some reason, ebook-convert is fetching content from the singleRight and singleSmallRight divs. I've even tried to add these two into the remove_tags method, but it's still being included.

Can offer me a hint as to why this is happening, and how to fix it?

Thanks & Cheers
wmaurer is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
New Recipe UtahJames Recipes 2 04-18-2011 06:32 PM
New Recipe UtahJames Recipes 1 04-11-2011 04:15 PM
Recipe Please gagw Recipes 0 01-24-2011 07:24 AM
New recipe kiklop74 Recipes 0 10-05-2010 04:41 PM

All times are GMT -4. The time now is 06:07 AM. is a privately owned, operated and funded community.