From f20a32e5c6d757e408d791f594652f676e9c9955 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 5 Jun 2020 09:25:11 +0530 Subject: [PATCH] Apparently economist uses both
and
for index page sections --- recipes/economist.recipe | 2 +- recipes/economist_free.recipe | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/economist.recipe b/recipes/economist.recipe index e070585bff..22210700b8 100644 --- a/recipes/economist.recipe +++ b/recipes/economist.recipe @@ -256,7 +256,7 @@ class Economist(BasicNewsRecipe): self.log('Got cover:', self.cover_url) feeds = [] - for section in soup.findAll('div', **classes('layout-weekly-edition-section')): + for section in soup.findAll(**classes('layout-weekly-edition-section')): h2 = section.find('h2') secname = self.tag_to_string(h2) self.log(secname) diff --git a/recipes/economist_free.recipe b/recipes/economist_free.recipe index e070585bff..22210700b8 100644 --- a/recipes/economist_free.recipe +++ b/recipes/economist_free.recipe @@ -256,7 +256,7 @@ class Economist(BasicNewsRecipe): self.log('Got cover:', self.cover_url) feeds = [] - for section in soup.findAll('div', **classes('layout-weekly-edition-section')): + for section in soup.findAll(**classes('layout-weekly-edition-section')): h2 = section.find('h2') secname = self.tag_to_string(h2) self.log(secname)