commit
276f5d3e60
|
@ -110,7 +110,7 @@ class MatrixModule(BotModule):
|
|||
# try parse and get the title
|
||||
try:
|
||||
soup = BeautifulSoup(r.text, "html.parser")
|
||||
title = soup.title.string
|
||||
title = soup.title.string.strip()
|
||||
descr_tag = soup.find("meta", attrs={"name": "description"})
|
||||
if descr_tag:
|
||||
description = descr_tag.get("content", None)
|
||||
|
|
Loading…
Reference in New Issue