import tweepy
from textblob import TextBlob

consumer_key = "zmLvww9CNLF1HJh6YmLuxLBXw"
consumer_secret = "<KEY>"

access_token = "<KEY>"
access_token_secret = "<KEY>"

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth)

public_tweets = api.search("<NAME>")

ctr = 0
for tweet in public_tweets:
    ctr += 1
    print("************************ New Tweet ************************")
    print(tweet.text)
    analysis = TextBlob(tweet.text)
    print(analysis.sentiment)

print(ctr)
import tweepy
from textblob import TextBlob

consumer_key = "zmLvww9CNLF1HJh6YmLuxLBXw"
consumer_secret = "<KEY>"

access_token = "<KEY>"
access_token_secret = "<KEY>"

auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)

api = tweepy.API(auth)

public_tweets = api.search("<NAME>")

ctr = 0
for tweet in public_tweets:
    ctr += 1
    print("************************ New Tweet ************************")
    print(tweet.text)
    analysis = TextBlob(tweet.text)
    print(analysis.sentiment)

print(ctr)