From e8ed9ea6e0b95cc35fb4c4968ce046956539cc82 Mon Sep 17 00:00:00 2001 From: yodha8 <104330897+yodha8@users.noreply.github.com> Date: Sun, 1 May 2022 12:02:57 -0700 Subject: [PATCH] Add LWN Free recipe --- recipes/lwn_free.recipe | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 recipes/lwn_free.recipe diff --git a/recipes/lwn_free.recipe b/recipes/lwn_free.recipe new file mode 100644 index 0000000000..f9c92b4b1f --- /dev/null +++ b/recipes/lwn_free.recipe @@ -0,0 +1,15 @@ +#!/usr/bin/env python +# vim:fileencoding=utf-8 + +from calibre.web.feeds.news import BasicNewsRecipe + +class LWNFree(BasicNewsRecipe): + title = "LWN Linux Weekly News (Free)" + description = "LWN is published every Thursday. Recipe skips current week's articles (subscriber-only) and pulls free articles from previous week." + oldest_article = 14 # So we can grab previous week articles. + max_articles_per_feed = 100 + auto_cleanup = True + + feeds = [ + ('LWN Articles', 'https://lwn.net/headlines/Features'), + ]