View Single Post
Old 02-17-2009, 10:03 AM   #219
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
This is modified version of your recipe that should work better:

PHP Code:

class AdvancedUserRecipe1234144423(BasicNewsRecipe):
    
title          u'Cincinnati Enquirer'
    
oldest_article 7
    language       
_('English')
    
__author__     'Joseph Kitzmiller'
    
max_articles_per_feed 100    
    html2epub_options 
'linearize_tables = True' 

    
no_stylesheets        True
    use_embedded_content  
False
    remove_javascript     
True
    extra_css 
'body {text-align: left;}'
    
encoding 'cp1252'
    
    
feeds          = [(u'Cincinnati Enquirer'u'http://rss.cincinnati.com/apps/pbcs.dll/section?category=rssenq01&mime=xml')]

    
def print_version(selfurl):
        return 
url '&template=printart'

    
def preprocess_html(selfsoup):
        for 
item in soup.findAll(style=True):
            
del item['style']
        for 
item in soup.findAll(face=True):
            
del item['face']
        return 
soup 
kiklop74 is offline