-
I downloaded tweepy using pip. I am unable to import 'Stream' or use attribute 'Stream' with tweepy. I checked the module and init.py it doesn't have 'Stream" or 'StreamListener'. What do I do in this case? This is my code:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes,
If you want to use streaming, you'll have to use Twitter API v2 with For code block usage, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks. |
Beta Was this translation helpful? Give feedback.
Yes,
StreamListener
was merged intoStream
in Tweepy v4.0.0, almost two years ago, andStream
was removed in Tweepy v4.14.0, as streaming with Twitter API v1.1 has been deprecated.tweepy.Stream
was a class, not an attribute, andtweepy.stream
never existed.If you want to use streaming, you'll have to use Twitter API v2 with
StreamingClient
and Pro or Enterprise access.For code block usage, see https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks.