Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Replies to a particular tweet, Twitter API

Tags:

twitter

Is there a way in the Twitter API to get the replies to a particular tweet? Thanks

like image 519
Victor Avatar asked Apr 22 '10 18:04

Victor


People also ask

How do I reply to a tweet with API?

POST statuses/update lets one "tweet" a status on Twitter. But when you want to add a reply the an existing twitter, you can set the in_reply_to_status_id to the tweet ID you want to reply to. The ID of an existing status that the update is in reply to.

How do I reply to Tweets using Tweepy?

Extract Replies to a Specific Tweet using Python and TweepyYou will want to have a Twitter Developer account and you will need to add your keys within the code. Navigate to where you downloaded your code, assuring you have Tweepy installed within the same environment. The replies will be in a .

How do you do a thread response on Twitter?

Tap the compose icon. Pull down from the compose window and tap Continue Thread to Add to your last Tweet. Add content, and tap Tweet to add to your thread. To add a thread to an earlier Tweet, click to Select another Tweet.


1 Answers

Here is the procedure to get the replies for a tweets

  1. when you fetch the tweet store the tweetId ie., id_str
  2. using twitter search api do the following query [q="to:$tweeterusername", sinceId = $tweetId]
  3. Loop all the results , the results matching the in_reply_to_status_id_str to $tweetid is the replies for the post.
like image 66
Satheesh Avatar answered Sep 18 '22 21:09

Satheesh