Skip to content

unable to get username when using StreamingClient in v2/4.9.0 #1885

Discussion options

You must be logged in to vote

You'll need to use StreamingClient.on_includes or StreamingClient.on_response.

StreamingClient.on_tweet only gets passed the Tweet in the data field, and as you can see, the User object is in a separate includes field.

See Tweepy's documentation on expansions for more information.

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 Discussion This was converted/moved from/to a discussion
2 participants
Converted from issue

This discussion was converted from issue #1884 on May 08, 2022 23:00.