Can't get userstream to use the new extended tweet mode

api

#1

Hi

I’m converting a python script to use the new api. I have tweet_mode=‘extended’ working fine with commands, but not with userstream.

This is the code:

kwargs = dict(tweet_mode=‘extended’)

stream = TwitterStream(auth=OAuth(oauth_token, oauth_secret, CONSUMER_KEY, CONSUMER_SECRET), domain=“userstream.twitter.com”)

tweet_iter = stream.user(**kwargs)

But I’m still getting truncated tweets. What am I doing wrong?


#2

User streams has been deprecated and we plan to sunset it soon. I encourage you to build on fully supported API.


#3

All the python APIs I can found all use userstream it seems.

What about the other streams - sitestream. and stream. - are they also deprecated?