Created
December 20, 2018 16:12
-
-
Save khanof89/444f990567226838ef0a917d7d0cf0fc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fetch_mentions(tweet): | |
mentions = [] | |
new_mentions = tweet.split(' ') | |
if new_mentions: | |
for new_mention in new_mentions: | |
print('new mention') | |
print(new_mention) | |
if new_mention.startsWith("@"): | |
mentions.append(new_mention) | |
return mentions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment