Python, Google Charts and Twitter Statistics

I post weekly statistics of DJIA and OMXH25 companies’ tweeting activity where companies are ranked by the number of tweets during the previous week (Mon-Sun).  See this Top tweeters (DJIA) 23.4. – 29.4.2012 as an example.

But how do I do that? I do it automatically, using Python, Python Twitter API, MySQL, Google Charts and cron. Continue reading “Python, Google Charts and Twitter Statistics”

One Word Visualization

I generated, using Processing programming language, a few visualizations of Twitter account names (here and here). The language’s web site introduces Processing well: “Processing is an open source programming language and environment for people who want to create images, animations, and interactions“. There’s also a good introduction to the language available at IBM developerWorks.

The algorithm I used is very simple but results can be quite appealing (well, at least I think so and there’s certain beauty in simplicity…)

The source code of the algorithm is below. The basic idea is to take a single word and based on it’s characters and length, generate random seed, color and (x,y,z)-coordinates in 3D space. Drawing is done one line and one rotation at a time. The final image is ready after five hundred rotations (see the demonstration of the code, requires Java. Also displayed in
Continue reading “One Word Visualization”