Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 405
Huga Avatar asked Apr 28 '15 19:04

Huga


People also ask

How do you get replies of a tweet?

If you click or tap on a reply in your timeline, it will expand to display the Tweet that was replied to. Replies from people with protected Tweets will only be visible to their followers. If someone sends you a reply and you are not following them, the reply will not appear in your Home timeline.

How do you only get mutual replies on twitter?

To change who can reply, click or tap the three-dot menu on a tweet and look for the option in the menu that appears. You can make it so that everyone can reply, only people you follow can reply, or only people you mention in your tweet can reply.


1 Answers

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.

like image 84
Juan E. Avatar answered Sep 29 '22 03:09

Juan E.