Commits

Anonymous committed 28a073e

Added a simple function for grabbing a name from a tweet

  • Participants
  • Parent commits e37fdec

Comments (0)

Files changed (1)

twitterbot/utils.py

+
+def find_screen_names(txt):
+    '''Finds words that are screen names in a tweet'''
+    names = []
+    for word in txt.split():
+        if word.startswith('@'):
+            names.append(word)
+
+    return names