Commit 7a43f9a7 authored by Francesco Poldi's avatar Francesco Poldi

Removing lower case for mentions

parent f75219c0
...@@ -6,8 +6,7 @@ class tweet: ...@@ -6,8 +6,7 @@ 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