mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
67d5c4af5a
@ -12,7 +12,7 @@ from calibre.web.feeds.news import BasicNewsRecipe, classes
|
||||
|
||||
class ft(BasicNewsRecipe):
|
||||
title = 'Financial Times'
|
||||
language = 'en'
|
||||
language = 'en_GB'
|
||||
__author__ = 'Kovid Goyal'
|
||||
description = 'The Financial Times is one of the world’s leading news organisations, recognised internationally for its authority, integrity and accuracy.'
|
||||
oldest_article = 1.15
|
||||
|
@ -11,7 +11,10 @@ class LWNFree(BasicNewsRecipe):
|
||||
description = "LWN is published every Thursday. This recipe skips current week's articles (subscriber-only) and pulls free articles from previous week."
|
||||
oldest_article = 28 # So we can grab previous week articles.
|
||||
max_articles_per_feed = 100
|
||||
auto_cleanup = True
|
||||
extra_css = '.FeatureByline { font-size:small; }'
|
||||
|
||||
keep_only_tags = [dict(name='div', attrs={'class':['ArticleText', 'PageHeadline']})]
|
||||
remove_tags = [dict(name='blockquote', attrs={'class':'ad'}), dict(name='form')]
|
||||
|
||||
feeds = [
|
||||
('LWN Articles', 'https://lwn.net/headlines/Features'),
|
||||
@ -35,6 +38,7 @@ class LWNFree(BasicNewsRecipe):
|
||||
# Count how many free weekly edition we passed
|
||||
if 'Weekly Edition' in article.title:
|
||||
weekly_count += 1
|
||||
remove_articles.append(article)
|
||||
|
||||
# Remove all articles starting from 2nd free weekly edition
|
||||
if weekly_count > 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user