1 min readNov 14, 2018
Keyword is not defined. The keyword is here in the for loop
for tweet in tweepy.Cursor(api.search, keyword, lang=”en”).items(numberOfTweets):
In my code on Github keyword is defined a few lines above this taking the input from the user in E1
def getData():
getE1()
keyword = getE1()