Skip to content
Advertisement

I suddenly receive no stream data from Twitter stream (requests.get(…2/tweets/search/stream))

I’m working on a screenshot bot for Twitter using Python.

My app collects tweet from a filtered stream and replies with an image of the tweet.

Yesterday, my bot worked well: connected to stream, and made replies.

Today, it still connects to stream but returns nothing.

Here is the code:

JavaScript

I’ve searched everywhere I know for help on this issue. I’ve reduced the queries in my request.get line, I’ve chosen to use a with statement, nothing works.

response.text returns nothing at all, even though response.status_code returns 200.

I have also tried 2 different developer accounts for streaming authentication

Advertisement

Answer

I figured out what the problem was, it is a problem in the Twitter side that caused streaming to fail for some accounts. It has been resolved now and everything works fine.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement