Skip to content

AttributeError: Module 'tweepy' has no attribute 'Stream' #2136

Closed Answered by Harmon758
abioz-aiz asked this question in Questions
Discussion options

You must be logged in to vote

Yes, StreamListener was merged into Stream in Tweepy v4.0.0, almost two years ago, and Stream 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, and tweepy.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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Harmon758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question This is a question Stale This is inactive, outdated, too old, or no longer applicable Discussion This was converted/moved from/to a discussion
2 participants
Converted from issue

This discussion was converted from issue #2135 on June 22, 2023 01:15.