import re from calibre.web.feeds.news import BasicNewsRecipe class PhysicsWorld(BasicNewsRecipe): title = u'Physicsworld' description = 'News from the world of physics' __author__ = 'Hypernova' language = 'en' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True cover_url = 'http://images.iop.org/cws/icons/themes/phw/header-logo.png' use_embedded_content = False remove_javascript = True needs_subscription = True remove_tags_before = dict(name='h1') remove_tags_after = [dict(name='div', attrs={'id':'shareThis'})] preprocess_regexps = [ (re.compile(r'