View Single Post
Old 08-06-2009, 07:41 AM   #7
jbambridge
Kindle DX
jbambridge began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Aug 2009
Location: The Netherlands
Device: iPad and Kindle DX
Quote:
If you post your recipe I'll take a look to see if I can spot the problem.
Thanks G. Here is my recipe:
PHP Code:
#!/usr/bin/env  python
__license__   'GPL v3'
__copyright__ '2008, Kovid Goyal kovid@kovidgoyal.net'
__docformat__ 'restructuredtext en'

'''
www.guardian.co.uk
'''

from calibre.web.feeds.news import BasicNewsRecipe

class Guardian(BasicNewsRecipe):

    
title u'My Guardian'
    
language _('English')
    
encoding 'utf-8'
    
oldest_article 7
    max_articles_per_feed 
20
    remove_javascript     
True
    simultaneous_downloads 
1
    use_embedded_content 
False
    recursions 
0
    filter_regexps 
= [r'\.g\.doubleclick\.net']

    
timefmt ' [%a, %d %b %Y]'

    
keep_only_tags = [dict(id=['article-wrapper''main-article-info'])]




    
no_stylesheets True
    extra_css 
'h2 {font-size: medium;} \n h1 {text-align: left;}'


    
feeds = [
       (
'Front Page',     'http://feeds.guardian.co.uk/theguardian/rss'),
#        ('UK',             'http://feeds.guardian.co.uk/theguardian/uk/rss'),
#        ('Business',       'http://www.guardian.co.uk/business/rss'),
#        ('Politics',       'http://feeds.guardian.co.uk/theguardian/politics/rss'),
#        ('Culture',        'http://feeds.guardian.co.uk/theguardian/culture/rss'),
#        ('Money',          'http://feeds.guardian.co.uk/theguardian/money/rss'),
#        ('Life & Style',   'http://feeds.guardian.co.uk/theguardian/lifeandstyle/rss'),
#        ('Travel',         'http://feeds.guardian.co.uk/theguardian/travel/rss'),
#        ('Environment',    'http://feeds.guardian.co.uk/theguardian/environment/rss')
        
]

    
def print_version(selfurl):
        return 
url '/print' 
Any help very welcome.

John
jbambridge is offline   Reply With Quote