<reponame>tditrani/ChallengeProject<filename>twitter_search.py
#!/usr/bin/env python


import twitter

#Get the term to search for
search_term = raw_input("Term to search for: ")

#Initilize the Api with the necisary info
api = twitter.Api(consumer_key='uNzYbptRPxMLQnoZ73daQuPHw',
                  consumer_secret='<KEY>',
                  access_token_key='<KEY>',
                  access_token_secret='<KEY>'
                  )
#Search twitter
result = api.GetSearch(term=search_term)

text_array = []

#Put the text from the related tweets into one array
for u in result:
    text_array.append(u.text)

print(text_array)










#!/usr/bin/env python


import twitter

#Get the term to search for
search_term = raw_input("Term to search for: ")

#Initilize the Api with the necisary info
api = twitter.Api(consumer_key='uNzYbptRPxMLQnoZ73daQuPHw',
                  consumer_secret='<KEY>',
                  access_token_key='<KEY>',
                  access_token_secret='<KEY>'
                  )
#Search twitter
result = api.GetSearch(term=search_term)

text_array = []

#Put the text from the related tweets into one array
for u in result:
    text_array.append(u.text)

print(text_array)
#!/usr/bin/env python #Get the term to search for #Initilize the Api with the necisary info #Search twitter #Put the text from the related tweets into one array