__license__ = 'GPL v3' __copyright__ = '' ''' Fetch Feed Antiwar.com ''' from calibre.web.feeds.recipes import BasicNewsRecipe class Antiwar_com(BasicNewsRecipe): title = u'Antiwar.com' # 2011-12-28 AGe description = '-Antiwar.com-' publisher = 'Antiwar.com' category = 'RSS-News, US' __author__ = 'Armin Geller' # 2012-01-22 AGe language = 'en' lang = 'en-US' encoding = 'utf-8' timefmt = ' [%a, %d %b %Y]' oldest_article = 7 max_articles_per_feed = 50 no_stylesheets = True auto_cleanup = True remove_javascript = True feeds = [ (u'Latest Viewpoints - Antiwar.com', u'http://www.feed43.com/8330834560181458.xml'), ] def print_version(self, url): return self.browser.open_novisit(url).geturl() + '&pagewanted=print'