News for hackers. Stuff that matters.
Re:A new and improved Twitter API by toyg on Friday July 17, 2020 @09:47AM (#23870399)
> there's no way to retrieve the replies to a tweet

My crusty old version of Tweetbot has been doing that for years...? Maybe not perfectly for tweets with hundreds of replies, but well enough.

Re:A new and improved Twitter API by jdminhbg on Friday July 17, 2020 @12:07PM (#23872017)
I'm not sure which hack Tweetbot is using to do this (I think search as noted below), but you can tell it's a hack because it only works for recent-ish tweets. If you go to a tweet a couple weeks old and view details, you can see that it won't fill in the replies.
Re:A new and improved Twitter API by jeromegv on Friday July 17, 2020 @01:40PM (#23873229)
Can confirm, Tweetbot never has "all" the replies.
Re:A new and improved Twitter API by roberto on Friday July 17, 2020 @04:13PM (#23874965)
The way clients usually do this is by fetching all mentions to the user after a given timestamp (of the original tweet), and collecting only those that are replies to the tweet. Since there's a limit on how many mentions you can get, you might not get all the replies.

It's been like that at least since 2013.

Re:A new and improved Twitter API by Nav_Panel on Friday July 17, 2020 @10:01AM (#23870535)
Any idea how it's done in the API? I know you can retrieve a tweet's parent, but not its children.
Re:A new and improved Twitter API by anaphor on Friday July 17, 2020 @10:46AM (#23871067)
You have to use the search feature to look for tweets and then look at the parent tweet ID. This is what bots like threadreaderapp, etc do. You can construct it from the bottom up if you know the ID of the last tweet in the thread of responses too, but you wouldn't know that a priori unless the user gives it to your software somehow.
Re:A new and improved Twitter API by Nav_Panel on Friday July 17, 2020 @11:20AM (#23871475)
But... that's not a tree -- there's still no way to discover all leaves. That's just a thread/singly linked list.
Re:A new and improved Twitter API by anaphor on Friday July 17, 2020 @12:36PM (#23872377)
Yes, I forgot to mention that. You need to know the IDs of all the leaf nodes of the thread or else you can only partially reconstruct it.
Re:A new and improved Twitter API by abluecloud on Friday July 17, 2020 @11:21AM (#23871487)
so the api is literally backwards
Re:A new and improved Twitter API by wyldfire on Friday July 17, 2020 @10:05AM (#23870579)
Step 0: build a tree including all tweets,

...

;)

Re:A new and improved Twitter API by benmanns on Friday July 17, 2020 @10:19AM (#23870712)
Possibly using the HTML API.
Re:A new and improved Twitter API by not_really on Saturday July 18, 2020 @11:31PM (#23886781)
The final frontier