From 285e35deba1bf186eef607c65313aa3b2e3e9f9b Mon Sep 17 00:00:00 2001 From: Christian Heller <c.heller@plomlompom.de> Date: Thu, 4 Feb 2016 01:12:03 +0100 Subject: [PATCH] Get rid of annoying BeautifulSoup parser warning. --- plomlombot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plomlombot.py b/plomlombot.py index 11a8206..57ac4d4 100755 --- a/plomlombot.py +++ b/plomlombot.py @@ -248,7 +248,7 @@ def handle_url(url, notice, show_url=False): return if mobile_twitter_hack(url): return - title = bs4.BeautifulSoup(r.text).title + title = bs4.BeautifulSoup(r.text, "html.parser").title if title: prefix = "PAGE TITLE: " if show_url: -- 2.30.2