Commit f75219c0 authored by Francesco Poldi's avatar Francesco Poldi

Lower case for mentions

parent d6b2d38e
......@@ -6,7 +6,8 @@ class tweet:
def getMentions(tw):
try:
mentions = tw.find("div", "js-original-tweet")["data-mentions"].split(" ")
_mentions = tw.find("div", "js-original-tweet")["data-mentions"].split(" ")
mentions = [mention.lower() for mention in _mentions]
except:
mentions = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment