home · contact · privacy
Get rid of annoying BeautifulSoup parser warning.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 4 Feb 2016 00:12:03 +0000 (01:12 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 4 Feb 2016 00:12:03 +0000 (01:12 +0100)
plomlombot.py

index 11a8206..57ac4d4 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: