5 ms·
Any idea how it's done in the API? I know you can retrieve a tweet's parent, but not its children.
by Nav_Panel 6y ago
Any idea how it's done in the API? I know you can retrieve a tweet's parent, but not its children.
- wyldfire 6y agoStep 0: build a tree including all tweets, ... ;)
- benmanns 6y agoPossibly using the HTML API.
- not_really 6y agoThe final frontier
- anaphor 6y agoYou 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.
- Nav_Panel 6y agoBut... that's not a tree -- there's still no way to discover all leaves. That's just a thread/singly linked list.
- anaphor 6y agoYes, 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.
- abluecloud 6y agoso the api is literally backwards
- deleted 6y ago[deleted]