diff --git a/recipes/economist.recipe b/recipes/economist.recipe
index 8cae56d15c..4d27887e8b 100644
--- a/recipes/economist.recipe
+++ b/recipes/economist.recipe
@@ -205,6 +205,10 @@ class Economist(BasicNewsRecipe):
def preprocess_raw_html(self, raw, url):
# open('/t/raw.html', 'wb').write(raw.encode('utf-8'))
root = parse(raw)
+ if '/interactive/' in url:
+ return '
' + root.xpath('//h1')[0].text + '
' \
+ + 'This article is supposed to be read in a browser' \
+ + ''
script = root.xpath('//script[@id="__NEXT_DATA__"]')
if script:
try:
diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe
index 8cae56d15c..4d27887e8b 100644
--- a/recipes/economist_free.recipe
+++ b/recipes/economist_free.recipe
@@ -205,6 +205,10 @@ class Economist(BasicNewsRecipe):
def preprocess_raw_html(self, raw, url):
# open('/t/raw.html', 'wb').write(raw.encode('utf-8'))
root = parse(raw)
+ if '/interactive/' in url:
+ return '' + root.xpath('//h1')[0].text + '
' \
+ + 'This article is supposed to be read in a browser' \
+ + ''
script = root.xpath('//script[@id="__NEXT_DATA__"]')
if script:
try:
diff --git a/recipes/economist_world_ahead.recipe b/recipes/economist_world_ahead.recipe
index f145240996..f3c11972d4 100644
--- a/recipes/economist_world_ahead.recipe
+++ b/recipes/economist_world_ahead.recipe
@@ -201,6 +201,10 @@ class Economist(BasicNewsRecipe):
def preprocess_raw_html(self, raw, url):
# open('/t/raw.html', 'wb').write(raw.encode('utf-8'))
root = parse(raw)
+ if '/interactive/' in url:
+ return '' + root.xpath('//h1')[0].text + '
' \
+ + 'This article is supposed to be read in a browser' \
+ + ''
script = root.xpath('//script[@id="__NEXT_DATA__"]')
if script:
try: