home
·
contact
·
privacy
projects
/
plomlombot-irc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Get rid of annoying BeautifulSoup parser warning.
[plomlombot-irc.git]
/
plomlombot.py
diff --git
a/plomlombot.py
b/plomlombot.py
index 8813498594f0a3ca4d453a366eac6ea246154bc7..57ac4d4c937e70a072b7d3b2b755c173b8c6b36e 100755
(executable)
--- a/
plomlombot.py
+++ b/
plomlombot.py
@@
-209,7
+209,7
@@
def handle_command(command, argument, notice, target):
msg = ""
while 1:
new_end = markov(snippet)
msg = ""
while 1:
new_end = markov(snippet)
- if len(msg) + len(new_end) >
4
00:
+ if len(msg) + len(new_end) >
2
00:
break
msg += new_end + " "
for i in range(select_length - 1):
break
msg += new_end + " "
for i in range(select_length - 1):
@@
-248,7
+248,7
@@
def handle_url(url, notice, show_url=False):
return
if mobile_twitter_hack(url):
return
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:
if title:
prefix = "PAGE TITLE: "
if show_url: