Monitor UK MPs deleted tweets10 Oct 2014
That is, thanks also to the assistance of Karl, who works with me at the BBC News Labs, and who kindly explained to me a bunch - the very basics: how to set the server up, the essential security measures, and how to
So, today, I took on an idea I had in mind since colleagues at French newspaper Le Monde published a very nice little list of tweets freshly deleted from Manuel Valls' account after the latest cabinet reshuffle - English version here.
I found most of what I needed on Github, and forked the project to make it fit my needs better.
Store it, baby
The approach is the following: the program runs 24/7, and fetches each and every tweet posted by the accounts you follow. It stores them in a database for reference, and takes a screenshot of all of them. Every once in a while, it checks again if the tweets are still available or... if they've been deleted. If that is the case, the screenshot is moved to a different folder and the tweet is stored in another database.
Pretty neat, eh?
The only downside of it is that, depending on how many accounts you are following, it can end up consuming quite a lot of storage space. My fork aims to fix that by reducing drastically the size of the saved images, but still, it will prove being quite heavy in the long run.
The program is relatively straightforward to execute. You will need a Twitter account and to create an app in order to obtain the credentials required. You will also need either a server to run the whole shebang, or to run it on your machine directly, if you do not power it off too often.
Besides that, just follow the Readme. Oh, and I almost forgot: thanks to Iain for providing a big nice CSV listing all UK MPs and their Twitter accounts!