From df31c71db352b2b67cfbae58802f1643ae621428 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 13 Mar 2017 21:11:52 +0530 Subject: [PATCH] The Morning Paper by Darko Miletic Fixes #1672427 [New recipe for The Morning Paper blog](https://bugs.launchpad.net/calibre/+bug/1672427) --- recipes/themorningpaper.recipe | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 recipes/themorningpaper.recipe diff --git a/recipes/themorningpaper.recipe b/recipes/themorningpaper.recipe new file mode 100644 index 0000000000..f3e4341b2c --- /dev/null +++ b/recipes/themorningpaper.recipe @@ -0,0 +1,42 @@ +#!/usr/bin/env python2 +# -*- mode: python -*- +# -*- coding: utf-8 -*- + +__license__ = 'GPL v3' +__copyright__ = '2017, Darko Miletic ' +''' +blog.acolyer.org +''' + +from calibre.web.feeds.news import BasicNewsRecipe + + +class Themorningpaper(BasicNewsRecipe): + title = 'The Morning Paper' + __author__ = 'Darko Miletic' + description = ('an interesting/influential/important paper from' + ' the world of CS every weekday morning, as selected by Adrian Colyer') + publisher = 'Adrian Colyer' + category = 'news, tech' + oldest_article = 180 + max_articles_per_feed = 200 + no_stylesheets = True + encoding = 'utf-8' + use_embedded_content = False + language = 'en' + remove_empty_feeds = True + auto_cleanup = True + publication_type = 'blog' + extra_css = """ + body{font-family: Georgia,Palatino,serif } + img{margin-bottom: 0.4em; display:block} + """ + + conversion_options = { + 'comment': description, + 'tags': category, + 'publisher': publisher, + 'language': language + } + + feeds = [(u'Articles', u'https://blog.acolyer.org/feed/')]