home · contact · privacy
Get rid of annoying BeautifulSoup parser warning.
[plomlombot-irc.git] / plomlombot.py
index 11a8206ab4691eaf500cedbb0873efeb532da561..57ac4d4c937e70a072b7d3b2b755c173b8c6b36e 100755 (executable)
@@ -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: