username = “@PopSci”
#Get last [count] tweets of specified user
theTimeline = api.user_timeline(screen_name = username, count = 10, tweet_mode=‘extended’, include_rts = False, include_entities=True, exclude_replies=True)
for tweet in theTimeline:
WHAT I AM TRYING TO DO:
if tweet.hasCard:
print(“True”)
else:
print(“False”)