From b98f6258d4251e3caaa58f91b3c9c6a154fdcc76 Mon Sep 17 00:00:00 2001 From: unkn0w7n <51942695+unkn0w7n@users.noreply.github.com> Date: Wed, 14 May 2025 09:50:46 +0530 Subject: [PATCH] update bs --- recipes/business_standard.recipe | 4 +--- recipes/business_standard_print.recipe | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/recipes/business_standard.recipe b/recipes/business_standard.recipe index e3fa2ad597..15ba78adc4 100644 --- a/recipes/business_standard.recipe +++ b/recipes/business_standard.recipe @@ -159,7 +159,5 @@ class BusinessStandard(BasicNewsRecipe): for x in soup.findAll(attrs={attr: True}): del x[attr] for br in soup.findAll(attrs={'class': lambda x: x and x.startswith('brtag')}): - if pa := br.find_parent('div'): - pa.name = 'p' - br.extract() + br.name = 'div' return soup diff --git a/recipes/business_standard_print.recipe b/recipes/business_standard_print.recipe index b9f9e33092..0a05f67f35 100644 --- a/recipes/business_standard_print.recipe +++ b/recipes/business_standard_print.recipe @@ -172,7 +172,5 @@ class BusinessStandardPrint(BasicNewsRecipe): for x in soup.findAll(attrs={attr: True}): del x[attr] for br in soup.findAll(attrs={'class': lambda x: x and x.startswith('brtag')}): - if pa := br.find_parent('div'): - pa.name = 'p' - br.extract() + br.name = 'div' return soup