0

I am running the code below. The problem is to find 1. All replies 2. Number of Retweets 3. Number of likes of a particular tweet id. I read this but unable to understand. Being a newbie, kindly tell me in simple. Any help will be appreciable.

import tweepy
from tweepy import OAuthHandler
import json

consumer_key = '*********************'
consumer_secret = '*********************'
access_token = '*********************'
access_secret = '*********************'

auth = OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_secret)

api = tweepy.API(auth)

tweet = api.get_status("756856874763423744")
print(tweet)
Community
  • 1
  • 1
waqas
  • 143
  • 1
  • 4
  • 15

1 Answers1

0

use tweet._json['retweet_count'] which will make you will get retweet count.