Hi,
I’m measuring which one of my followers/followings is interacting the most with me. But I would like to count only once when several tweets of the same person answer to the same initial tweet.
Example:

Initial Tweet
User A answers
I answer A
User A answers again

==> On this case, I would like to find a way to exclude the last answer of user A and only consider it as one answer and not two from user A.

Any idea ?

for each tweet, you can follow the reply chain upwards with in_reply_to_status_id until you reach your original tweet, and count that as 1.

1 Like

Great idea, thanks !!

1 Like

Hi Again,

Just a little question @IgorBrigadir . Here is an example :

Tweet A (quoting tweet X)
Tweet B (answering tweet A)
Tweet C (answering tweet B)

On this example, using your method within Labs V2 and referenced_tweets, I get the tweet X as root tweet. Instead, I would like to have the tweet A. Do I have a way to do it ?
And if for example the tweet B was answering the tweet A but quoting a tweet Y, I would still like to have Tweet A and not Tweet Y.

It’s a little bit messy I hope you’ll understand haha

Thanks !

Edit : I just saw this thing, I guess I should use it !
image

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.