View Single Post
Old 05-01-2010, 12:51 PM   #1876
swmkdr
Junior Member
swmkdr began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2010
Device: Kindle 3
Okay, so I tried to make an AVClub website recipe by customising the bbc one. It seems to work fine, but I need some help removing all the extra stuff - headers, sidebar, images etc. This is what the recipe looks like at the moment:

Code:
#!/usr/bin/env  python

__license__   = 'GPL v3'
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
'''
bbc.co.uk
'''

from calibre.web.feeds.news import BasicNewsRecipe

class BBC(BasicNewsRecipe):
    title          = u'The Onion AV Club'
    __author__     = 'Kovid Goyal'
    description    = 'Film, Television and Music Reviews'
    oldest_article        = 2    
    max_articles_per_feed = 100   
    no_stylesheets = True
    use_embedded_content  = False
    encoding              = 'utf-8'
    remove_javascript     = True

    remove_tags    = [dict(name='div', attrs={'class':'footer'})]
    extra_css      = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt  }' 

    feeds          = [
                      ('Interviews', 'http://www.avclub.com/feed/interview/'), 
                      ('Features', 'http://www.avclub.com/feed/features/'),
                      ('Film', 'http://www.avclub.com/feed/film/'),
                      ('Music', 'http://www.avclub.com/feed/music/'),
                      ('DVD', 'http://www.avclub.com/feed/dvd/'),
                      ('Books', 'http://www.avclub.com/feed/books/'),
                      ('Games', 'http://www.avclub.com/feed/games/'),
                      ('AV Club Daily', 'http://www.avclub.com/feed/daily/'),
                    ]
Any help would be appreciated. Thanks in advance.
swmkdr is offline