from calibre.web.feeds.news import BasicNewsRecipe class NatureNews(BasicNewsRecipe): title = u'Nature News' language = 'en' __author__ = 'Krittika Goyal, Starson17' oldest_article = 31 #days remove_empty_feeds = True max_articles_per_feed = 50 no_stylesheets = True use_embedded_content = False keep_only_tags = [dict(name='div', attrs={'id':'article'})] extra_css = ''' .author { text-align: right; font-size: small; line-height:1em; margin-top:0px; margin-left:0; margin-right:0; margin-bottom: 0; } .imagedescription { font-size: small; font-style:italic; line-height:1em; margin-top:5px; margin-left:0; margin-right:0; margin-bottom: 0; } .imagecredit { font-size: x-small; font-style: normal; font-weight: bold} ''' feeds = [('Nature News', 'http://feeds.nature.com/news/rss/most_recent')]