home · contact · privacy
Use html5lib for BeautifulSoup parsing.
[plomlombot-irc.git] / plomlombot.py
index 1be105cbdf51325b4817177cb34f29860c57ac1a..6f6d33994255504e2ac4903cbe254d623db5fbdc 100755 (executable)
@@ -322,7 +322,7 @@ def handle_url(url, notice, show_url=False):
         return
     if mobile_twitter_hack(url):
         return
-    title = bs4.BeautifulSoup(r.text, "html.parser").title
+    title = bs4.BeautifulSoup(r.text, "html5lib").title
     if title:
         prefix = "PAGE TITLE: "
         if show_url: