Skip to content

v1.0.4

Compare
Choose a tag to compare
@edsu edsu released this 17 Jan 22:36
· 1223 commits to main since this release

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

screen shot 2017-01-17 at 3 35 58 pm