Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
305 stars 31 forks source link

Is there a way to retrieve replies on a tweet? #444

Closed paratroid closed 5 months ago

paratroid commented 5 months ago

For example if I were to look at this tweet, is there a way to collect the replies on it? I'm currently using the tweet.details method to get the individual tweet, but there doesn't seem to be a way I might be able to chain this together to collect replies on tweets. Any help or advice would be much appreciated! And thank you for all the awesome work you're doing on this API 💯

Rishikant181 commented 5 months ago

Currently, fetching of replies is not supported, but it's being worked on https://github.com/Rishikant181/Rettiwt-API/issues/433

paratroid commented 5 months ago

Absolutely amazing! Thank you! 🥇

Rishikant181 commented 5 months ago

Duplicate of #433

Jeto143 commented 1 month ago

Hi @Rishikant181, I was looking to accomplish this for one of my projects, but I noticed you marked #433 as "not planned". Is that not possible? (I was thinking of a replyTo field in TweetFilter)

Or maybe I missed another way to do it that you've implemented since then?

Thank you!

Rishikant181 commented 1 month ago

@Jeto143 Fetching replies is proving to be quite the headache owing to the nested nature of the conversations that exist in the replies section of a tweet. I'm still grinding my gears over trying to figure out an elegant and maintainable method to filter out the replies but so far, it has been unfruitful. As such, the issue has been marked as not-planned. As soon as a viable solution is deemed to be somewhat plausible, the issue will be updated.

TL;DR: Fetching and filtering replies is proving to be difficult :(

Jeto143 commented 1 month ago

@Rishikant181 No worries, thank you for the transparency!

Jeto143 commented 1 month ago

@Rishikant181 The conversation_id operator seems to be the closest, although it only seems to work on opening tweets (not replies). E.g.:

Tweet: https://twitter.com/DaMJFan/status/1451509766866587649 Replies: https://twitter.com/search?q=conversation_id%3A1140437409710116865

(I'm assuming Rettiwt-Core performs these types of query from the looks of its code, but I'm not 100% sure.)