From a5ca38430b10b13298ccc145da9bf8cc8b4f005a Mon Sep 17 00:00:00 2001
From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com>
Date: Tue, 30 Jan 2024 09:44:39 +0530
Subject: [PATCH] ...
---
recipes/economist.recipe | 2 +-
recipes/economist_free.recipe | 2 +-
recipes/economist_world_ahead.recipe | 2 +-
recipes/financial_times.recipe | 2 ++
4 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/recipes/economist.recipe b/recipes/economist.recipe
index e33389a17a..cff4313a3c 100644
--- a/recipes/economist.recipe
+++ b/recipes/economist.recipe
@@ -206,7 +206,7 @@ class Economist(BasicNewsRecipe):
# open('/t/raw.html', 'wb').write(raw.encode('utf-8'))
root = parse(raw)
if '/interactive/' in url:
- return '
' + root.xpath('//h1')[0].text + '
' \
+ return '' + root.xpath('//h1')[0].text + '
' \
+ 'This article is supposed to be read in a browser' \
+ ''
script = root.xpath('//script[@id="__NEXT_DATA__"]')
diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe
index e33389a17a..cff4313a3c 100644
--- a/recipes/economist_free.recipe
+++ b/recipes/economist_free.recipe
@@ -206,7 +206,7 @@ class Economist(BasicNewsRecipe):
# open('/t/raw.html', 'wb').write(raw.encode('utf-8'))
root = parse(raw)
if '/interactive/' in url:
- return '' + root.xpath('//h1')[0].text + '
' \
+ return '' + root.xpath('//h1')[0].text + '
' \
+ 'This article is supposed to be read in a browser' \
+ ''
script = root.xpath('//script[@id="__NEXT_DATA__"]')
diff --git a/recipes/economist_world_ahead.recipe b/recipes/economist_world_ahead.recipe
index b2d2e5ae97..3e7ce68cdb 100644
--- a/recipes/economist_world_ahead.recipe
+++ b/recipes/economist_world_ahead.recipe
@@ -202,7 +202,7 @@ class Economist(BasicNewsRecipe):
# open('/t/raw.html', 'wb').write(raw.encode('utf-8'))
root = parse(raw)
if '/interactive/' in url:
- return '' + root.xpath('//h1')[0].text + '
' \
+ return '' + root.xpath('//h1')[0].text + '
' \
+ 'This article is supposed to be read in a browser' \
+ ''
script = root.xpath('//script[@id="__NEXT_DATA__"]')
diff --git a/recipes/financial_times.recipe b/recipes/financial_times.recipe
index 11a32c9c38..4b6dc58b70 100644
--- a/recipes/financial_times.recipe
+++ b/recipes/financial_times.recipe
@@ -81,6 +81,7 @@ class ft(BasicNewsRecipe):
open = open_novisit
feeds = [
+ ('FirstFT', 'https://www.ft.com/firstft?format=rss'),
('Opinion', 'https://www.ft.com/opinion?format=rss'),
('World', 'https://www.ft.com/world?format=rss'),
('US', 'https://www.ft.com/us?format=rss'),
@@ -90,6 +91,7 @@ class ft(BasicNewsRecipe):
('Climate', 'https://www.ft.com/climate-capital?format=rss'),
('Life & Arts', 'https://www.ft.com/life-arts?format=rss'),
('How to spend it', 'https://www.ft.com/htsi?format=rss'),
+ ('Others', 'https://www.ft.com/rss/home/uk')
]
def preprocess_raw_html(self, raw, *a):