mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/unkn0w7n/calibre
This commit is contained in:
commit
7b0223608a
@ -181,8 +181,11 @@ class ft(BasicNewsRecipe):
|
|||||||
p.name = 'p'
|
p.name = 'p'
|
||||||
div = soup.findAll(**classes('article-info__time-byline-content'))
|
div = soup.findAll(**classes('article-info__time-byline-content'))
|
||||||
for d in div:
|
for d in div:
|
||||||
if p_ := d.find('p'):
|
for p_ in d.findAll('p'):
|
||||||
p_.name = 'div'
|
p_.name = 'div'
|
||||||
|
for tim in soup.findAll('time'):
|
||||||
|
if tim.string:
|
||||||
|
tim.string = ' ' + tim.string
|
||||||
for table in soup.findAll('table'):
|
for table in soup.findAll('table'):
|
||||||
if len(table.find('tbody').findAll('tr')) > 20:
|
if len(table.find('tbody').findAll('tr')) > 20:
|
||||||
table.find('tbody').decompose()
|
table.find('tbody').decompose()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user