View Single Post
Old 12-28-2011, 04:44 AM   #1
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
BBC Nature Recipe

A recipe that grabs a few feeds from the BBCs nature website using
the official rss link and some using feed43
I knocked it up as something that would interest the missus on her kindle to go with her cosmo..
thought other might find it of use?


Spoiler:



Code:
class AdvancedUserRecipe1325006965(BasicNewsRecipe):
    title          = u'BBC Nature'
    cover_url = 'http://www.bbc.co.uk/midlandstoday/content/images/2007/11/09/autumnwatch_203_203x152.jpg'
    __author__ = 'Dave Asbury'
    # last updated 27/12/11
    language = 'en_GB'
    oldest_article = 8
    max_articles_per_feed = 25
    remove_empty_feeds = True
    no_stylesheets = True
    auto_cleanup = True
    #articles_are_obfuscated = True

    remove_tags    = [
                              dict(attrs={'class' : ['player']}),

	]
    feeds          = [
	(u'BBC Nature', u'http://feeds.bbci.co.uk/nature/rss.xml'),
        	(u'BBC Nature Articles', u'http://feed43.com/7747058816773854.xml'),
        	(u'BBC Nature Homepage links', u'http://feed43.com/0718070008648254.xml'),
	]
#http://www.bbc.co.uk/midlandstoday/content/images/2007/11/09/autumnwatch_203_203x152.jpg
scissors is offline   Reply With Quote