|Sample output showing the least active users first|
The tool is a simple Python script that takes a Twitter screen name of a target user as an input and then retrieves who they follow and who follows them. For each user found it displays three things.
How the users are related to each other
If the target user and the found user follow each other 'linked to' is displayed.
If the target user only follows the found user 'following' is displayed
If the target user is only followed by the found user 'followed by' is displayed.
The users screen name
The time that the user last updated their status
The time of the last update in local time
If the user is protected 'protected' is displayed
If the user hasn't tweeted 'no tweets' is displayed
The script uses parts of the Twitter API that don't require authentication. This means you can analyse any user that isn't protected but you will be unable to retrieve data on found users that are protected. As this is for my own use I'm not too worried about implementing authentication as I only follow one protected user. It shouldn't be too hard to adapt the script to use authentication. The code is a little rough around the edges and may fail under certain circumstances, but generally it does the job.
To make the results easier to analyse they are sorted by the time that the user last updated their status, with least active accounts at the top.
As the twitter API is rate limited the script may take a while to complete. A delay of 24 seconds is added after each request to prevent being blacklisted. As a rough guess the script should take 1.25 seconds per follower and followee.
|The output showing most active, protected, and users without tweets|
|The script acquiring data|