From 3271528452442caf07bc70e0e87640acb70b062d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Jan 2011 09:37:24 -0700 Subject: [PATCH] New Journal of Physics by Chema Cortes --- resources/recipes/njp.recipe | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 resources/recipes/njp.recipe diff --git a/resources/recipes/njp.recipe b/resources/recipes/njp.recipe new file mode 100644 index 0000000000..f2a427072b --- /dev/null +++ b/resources/recipes/njp.recipe @@ -0,0 +1,32 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +__license__ = 'GPL v3' +__copyright__ = 'Chema Cortés - 2011-01-05' +__version__ = 'v0.01' +__date__ = '2011-01-05' +''' +njp.org +''' + +from calibre.web.feeds.news import BasicNewsRecipe + +class NewJournalOfPhysics(BasicNewsRecipe): + title = u'New Journal of Physics' + __author__ = u'Chema Cortés' + description = u'The open-access journal for physics' + publisher = u'IOP (Institute of Physics)' + category = 'physics, journal, science' + language = 'en' + + oldest_article = 30 + max_articles_per_feed = 100 + + keep_only_tags = [dict(id=['fulltextContainer'])] + no_stylesheets=True + use_embedded_content=False + + feeds = [(u'Latest Papers', u'http://iopscience.iop.org/1367-2630/?rss=1')] + + def print_version(self, url): + return url+"/fulltext"