twitter-archive-parser icon indicating copy to clipboard operation
twitter-archive-parser copied to clipboard

Feature request: Support for reply-to-self threads

Open twoscomplement opened this issue 2 years ago • 7 comments

It would be nice to be able to extract or format tweet threads in some fashion that makes them easy to identify - right now, all the tweets appear in the output, but not with any explicit indication of connection between the related replies-to-self.

At least one complication is that threads are not necessarily a single linear sequence.

twoscomplement avatar Nov 12 '22 18:11 twoscomplement

The JSON has the id of the tweet being replied to, if any. But the archive only contains tweets sent by the user, so linking them together might be impossible, unless we start trying to pull content through the API.

timhutton avatar Nov 12 '22 19:11 timhutton

To clarify, I was (initially, at least :slightly_smiling_face:) looking for an easy way to group reply-to-self style tweet threads - which would be useful to me, independent of having full threads of discussion.

A concrete example being the ~30 tweets starting here.

(including twitter.com links to other accounts' tweets being replied to, in output.md, could be useful, too)

twoscomplement avatar Nov 12 '22 19:11 twoscomplement

Do you have any thoughts on how the threads should be represented in the output?

Another complication is that the ordering of the tweets will get broken, if other tweets happened while a thread was carrying on. This might make it hard to find tweets in the output.

timhutton avatar Nov 12 '22 21:11 timhutton

It would be nice to at least reconstruct the simplest possible threads. One approach could be to group them in the same ---- block. Tweets outside the thread that happened while the thread was developing (which is very common if you occasionally append something to an old thread) would then go to the next ---- block.

Sjors avatar Nov 13 '22 19:11 Sjors

As for threads with other people in it, I think there's two variations:

  1. My tweet(s), followed by replies (which include my own). Perhaps they're best rendered with block quotes:
----

My brilliant hot take

(Originally on Twitter: …)

My own followup tweet

(Originally on Twitter: …)

Reply by @ somebody:

> Wow that's brilliant!

(Originally on Twitter: …)

Thanks!

(Originally on Twitter: …)

  1. My replies to other tweets

Those should probably go in a separate file, e.g. interactions_2007_10.md

Tweet by @ somebody
> How much is 2 x 2?

(Originally on Twitter: …)

Reply by @ someone_else

> 5

(Originally on Twitter: …)

4

(Originally on Twitter: …)

Sjors avatar Nov 13 '22 19:11 Sjors

Would definitely be cool to be able to use the API to fetch other peoples' tweets that you're replying to, so you have the complete conversation.

hyc avatar Nov 18 '22 15:11 hyc

@hyc Yes, perhaps. Please feel free to make a new feature request for it.

timhutton avatar Nov 18 '22 15:11 timhutton