I am using twitter v1 api for searching the tweet , last day python script working fine but today it gives the error
TweetException Failed to parse the Payload
Any suggestion?
consumer_key = "*"
consumer_secret = "*"
access_key = "*"
access_secret = "*"
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_key, access_secret)
api = tweepy.API(auth)
def get_init_tweets(screen_name):
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_key, access_secret)
api = tweepy.API(auth)
alltweets = []
print(api.verify_credentials().screen_name)
new_tweets = api.search_tweets(q = '@ElonMuskAOC',count=200,result_type='recent')
print(outtweets)
return new_tweets
i have try to find out solution in Stackoverflow but no help. I have another api keys also when i am trying to check the connection with api ,it return same bug. syntax to check the api is working or not "print(api.verify_credentials().screen_name)"