T-cracia is a data-driven application aimed to monitor, measure and analyze the Spanish political activity on Twitter.

By querying the Twitter REST API  (and eventually the Streaming API) it gathers Twitter data from a list of accounts of more than 600 Spanish parties and politicians. After 7 months we are currently recording hourly samples for relevant account measures (followers count, tweets, friends, listed, etc.). The web applications interactively sorts and displays current and recorded values, and refreshes every 10 minutes.

t-cracia-mix_800pxA quick tour of the web application


The “Arch” shows how the parties in the Spanish Congress would be distributed if seats were given according to Twitter followers instead of votes.


There are rankings for parties and politicians, according to the number of followers (total, daily, weekly, current year).


 Monitoring panel

The monitoring panel shows what parties and politicians are having some relevant activity during the present day. You can jump to the their Twitter feed to follow what is happening.

20150302_dofideas_post_panel_politicosEvolution charts

This chart shows the evolution for the last two weeks and for different measures (followers, tweets, daily, weekly, total). It can display a few accounts or, if you wish, way too many of them together.

20150302_dofideas_post_evol_politicos_saturadoDetail view

The detail view shows a statistics summary for a single account (party or politician), allowing to navigate through the relationships between parties and politicians. It also shows the hourly patterns for tweets and followers (accumulated over the last 4 weeks).

20150302_post_dofideas_detalle_pacmaTwitter panel

The twitter panel shows in three columns Twitter feeds with all the parties and politicians we monitor. Besides, it shows our own Twitter feed. We daily tweet stats, relevant events related to the data we gather, and stay connected with our followers.


The “followers” panel shows what parties and politicians follow us back. They are potential users of our app.

20150302_dofideas_post_nossiguen_partidos We monitor ourselves

Yes, we know we are neither party nor politician, but we monitor ourselves with the app.

20150302_dofideas_post_detalle_tuitocracia 20150302_dofideas_post_evol_tuitocracia_2015Technologies

T-cracia integrates a diverse set of technologies. Let me write down a short summary:

  • Databases: Postgresql for the relational structure of parties and politicians. MongoDB for the timestamped recorded events. Redis for caching.
  • Programming languages: Javascript in the front and back-end. Python for the Django admin interface that drives the Postgresql relational database.
  • Frameworks: Nodejs for the back-end, serving the single-page web app, the REST endpoints and the worker processes that query the Twitter API. AngularJS for the front-end. Django for its admin interface in order to feed and manage the Postgresql relational database.
  • Libraries: D3js for the interactive visualizations and charts, embedded in AngularJS directives. Python Pandas library for off-line data analysis.
  • Platform as a Service: Heroku, with plugins. MongoLab for MongoDB, Papertrail for logging, New Relic for performance monitoring,  RedisCloud, Blitz & Loader.io for load testing.

Get in touch

We watch Twitter every day: find us at @tuitocracia, T-cracia app and T-cracia blog.

If you like the project, want to share some ideas, ask questions or make suggestions, please do!

[contact-form to=’hola@t-cracia.com’ subject=’Formulario Post T-cracia DoFideas’][contact-field label=’Name’ type=’name’ required=’1’/][contact-field label=’Email’ type=’email’ required=’1’/][contact-field label=’Website’ type=’url’/][contact-field label=’Comment’ type=’textarea’ required=’1’/][/contact-form]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Uso de cookies

Este sitio web utiliza cookies para que usted tenga la mejor experiencia de usuario. Si continúa navegando está dando su consentimiento para la aceptación de las mencionadas cookies y la aceptación de nuestra política de cookies, pinche el enlace para mayor información.plugin cookies

Aviso de cookies