Skip to content

Instantly share code, notes, and snippets.

@khanof89
Created December 20, 2018 16:12
Show Gist options
  • Save khanof89/444f990567226838ef0a917d7d0cf0fc to your computer and use it in GitHub Desktop.
Save khanof89/444f990567226838ef0a917d7d0cf0fc to your computer and use it in GitHub Desktop.
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