Commit 88921cd7 authored by Francesco Poldi's avatar Francesco Poldi

Lower case for mentions

parent ae4b9ca7
...@@ -6,7 +6,8 @@ class tweet: ...@@ -6,7 +6,8 @@ class tweet:
def getMentions(tw): def getMentions(tw):
try: 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: except:
mentions = "" 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