Twitter API - Retrieve all replies to a certain tweet
Asked Answered
R

0

8

I am trying to use Twitter API with the Python wrapper Twython and I want to retrieve all replies (the comments below a tweet) to a certain tweet find using some patterns.

At the moment to achieve this, I perform the search of a string, I retrieve the screen_name field of user field in the response, related to the original tweets and then I use again the API in order to search the latest tweets directed to the user, using in the query the substring to:screen_name.

Is there a better solution? The only questions related to this topic that I found were written in '14 and I hope that, in the mean time, there were some improvements.

Regal answered 2/2, 2018 at 14:19 Comment(3)
I found this thread that talks about retreiving tweet replies from a particular tweet from a specific user. And this Github code that explains, and I quote, Twitter's API doesn't allow you to get replies to a particular tweet, but he seems to have a work-around.Infusion
Thanks for the reply. I will try even this way. But I hoped the were be something that is not a work around in order to call APIs as least as possible.Regal
Maybe Twitter wants to avoid too much scrapping and voluntarily asks for specifics in order to get results. ;)Infusion

© 2022 - 2024 — McMap. All rights reserved.