Search code examples
pythontwittertweepytweetstwitter-streaming-api

Getting tweet replies to a particular tweet from a particular user


I am trying to go through tweets of a particular user and get all replies on that tweet. I found that the APIv1.1 of twitter does not directly support it.

Is there a hack or a workaround on getting the replies for a particular tweet. I am using python Streaming API.


Solution

  • There is a workaround using the REST API.

    You will need the id_str and @username of the author of the original tweet you want to find replies to.

    You should use the Search API for the "@username" of the author. Go through the results looking for the 'in_reply_to_status_id' field to compare to the id_str of the specific tweet you want replies for.