v1.0.4
Twarc now includes a replies
command and API call that attempts to use Twitter's search API to find replies to a given tweet.
% twarc replies 821474942931914752 > replies.json
You can also use it on a file of tweets:
% twarc replies tweets.json > replies.json
If you want you can also fetch replies to replies by using the --recursive
option...although it could be time consuming because of rate limits on the search API:
% twarc replies 821474942931914752 --recursive > replies.json
The logic was borrowed from a standalone script that is described in some detail here.
Finally there is a new utility included utils/gexf.py that will create a GEXF file from a file of tweets that can be loaded into Gephi. It is really just a start of something, so if you have ideas for improving it, please send them.
% twarc replies 821439203561115648 > replies.json
% python utils/gexf.py replies.json > replies.gexf
# open replies.gexf in Gephi and you'll see something like this