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](https://gist.github.com/edsu/54e6f7d63df3866a87a15aed17b51eaf).
---
Finally there is a new utility included [utils/gexf.py](https://github.com/DocNow/twarc/blob/master/utils/gexf.py) that will create a [GEXF](https://gephi.org/gexf/format/) file from a file of tweets that can be loaded into [Gephi](https://gephi.org/). 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
![screen shot 2017-01-17 at 3 35 58 pm](https://cloud.githubusercontent.com/assets/33829/22042944/5c0cad08-dcdb-11e6-8145-8f67c66f24b5.png)