#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2008, Darko Miletic ' ''' sciencedaily.com ''' from calibre.web.feeds.news import BasicNewsRecipe class ScienceDaily(BasicNewsRecipe): title = u'ScienceDaily' __author__ = u'Darko Miletic' description = u"Breaking science news and articles on global warming, extrasolar planets, stem cells, bird flu, autism, nanotechnology, dinosaurs, evolution -- the latest discoveries in astronomy, anthropology, biology, chemistry, climate & environment, computers, engineering, health & medicine, math, physics, psychology, technology, and more -- from the world's leading universities and research organizations." oldest_article = 7 language = 'en' max_articles_per_feed = 150 no_stylesheets = True use_embedded_content = False cover_url = 'http://www.sciencedaily.com/images/logo.gif' keep_only_tags = [ dict(name='h1', attrs={'class':'story'}) ,dict(name='div', attrs={'id':'story'}) ] # @@@ float: righr; width: 500px (wtf) remove_attributes = ['style', 'width'] remove_tags_after = dict(name='div', attrs={'id':'citations'}) remove_tags = [ dict(name='div', attrs={'id':'sharing'}) ,dict(name='div', attrs={'id':'citations'}) ,dict(name='div', attrs={'class':'overlay'}) ] feeds = [(u"ScienceDaily", u'http://www.sciencedaily.com/newsfeed.xml')]