Ao executar o código da aula:
tweets = tw.Cursor(api.search, q="tesla", since="2023-01-01", lang="pt").items(10)
for t in tweets:
print(t.user.screen_name)
Erro:
---------------------------------------------------------------------------
TweepError Traceback (most recent call last)
<ipython-input-30-6ade8a93eafe> in <module>
2 print(tweets)
3
----> 4 for t in tweets:
5 print(t.user.screen_name)
4 frames
/usr/local/lib/python3.8/dist-packages/tweepy/binder.py in execute(self)
232 raise RateLimitError(error_msg, resp)
233 else:
--> 234 raise TweepError(error_msg, resp, api_code=api_error_code)
235
236 # Parse the response payload
TweepError: Twitter error response: status code = 403