Merge pull request #1 from sqozz/master

Fix title - thanks to sqozz!
This commit is contained in:
exitnode 2020-12-20 19:17:19 +01:00 committed by GitHub
commit 9dfec57d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def download_tafel(conn, tafel, rubrik):
soup = BeautifulSoup(r.data, 'html.parser')
desc = soup.find('div', class_='std')
title = soup.find('h1')
title = soup.find('h2')
if desc is not None and title is not None:
title = title.text.replace("<h1>","")
title = title.replace("<b>","")