View Single Post
Old 10-06-2010, 12:21 AM   #2
jefferson_frantz
Member
jefferson_frantz began at the beginning.
 
jefferson_frantz's Avatar
 
Posts: 14
Karma: 12
Join Date: Jan 2009
Location: Lima, Perú
Device: Kindle 2 and Sony Reader PRS 505
Quote:
Originally Posted by aessedai44 View Post
Hi

I have been using calibre for a while now and love it. I'm interested in getting feeds for 2 UK newspapers, one daily and the other weekly. This is completely beyond me, any help would be greatly appreciated. The feeds are

http://www.mirror.co.uk/

http://www.buxtonadvertiser.co.uk/

Thank you in advance

Paul
Hi, here is a recipe for the mirror.co.uk

Spoiler:

Code:
class MirrorUK(BasicNewsRecipe):
    title          = u'Mirror.co.uk'
    __author__     = u'Jefferson Frantz'
    oldest_article = 30
    language = 'en'
    max_articles_per_feed = 100
    recursions = 0
    no_stylesheets = True
    remove_javascript = True

    keep_only_tags = [dict(name='div', attrs={'id':['three-col']})]

    remove_tags        = [
                             dict(name=['object','link','script','ul'])
                            ,dict(name='div', attrs={'class':['advert']})
                            ,dict(name='p', attrs={'class':['append-html']})
                         ]

    feeds       = [(u'Articles', u'http://www.mirror.co.uk/rss.xml')]


Jeff.
jefferson_frantz is offline   Reply With Quote