update bs

This commit is contained in:
unkn0w7n 2025-05-14 09:50:46 +05:30
parent 6e0787be0d
commit b98f6258d4
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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