Add LWN Free recipe

This commit is contained in:
yodha8 2022-05-01 12:02:57 -07:00 committed by GitHub
parent 2366573485
commit e8ed9ea6e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

15
recipes/lwn_free.recipe Normal file
View File

@ -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'),
]