I'm having trouble with new and old documentation of tweepy, it seems that everything that worked in previous versions, but there are a lot of changes, I have a problem making it work right now. Any ideas why I have this error?
import tweepy
client = tweepy.Client(bearer_token='[redacted]',
consumer_key='[redacted]',
consumer_secret='[redacted]',
access_token='[redacted]',
access_token_secret='[redacted]')
api = tweepy.API(client)
public_tweets = api.home_timeline()
for tweet in public_tweets:
print(tweet.text)
I get this error
AttributeError: 'Client' object has no attribute 'apply_auth'