mirror of
https://codeberg.org/mclemens/teletext-rss.git
synced 2024-06-08 23:40:53 +00:00
commit
9dfec57d75
|
@ -105,7 +105,7 @@ def download_tafel(conn, tafel, rubrik):
|
||||||
|
|
||||||
soup = BeautifulSoup(r.data, 'html.parser')
|
soup = BeautifulSoup(r.data, 'html.parser')
|
||||||
desc = soup.find('div', class_='std')
|
desc = soup.find('div', class_='std')
|
||||||
title = soup.find('h1')
|
title = soup.find('h2')
|
||||||
if desc is not None and title is not None:
|
if desc is not None and title is not None:
|
||||||
title = title.text.replace("<h1>","")
|
title = title.text.replace("<h1>","")
|
||||||
title = title.replace("<b>","")
|
title = title.replace("<b>","")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user