imusage
To start off learning python towards the beginning of 2007, I decided to take my imstat perl script that simply generated a png into something more useful. imusage is three python scripts:
- log2sql.py - these 140 lines of python parse through pidgin, adium, gaim, and iChat logs and imports them all into mysql. This is run automatically every night and only adds records to the database that are not in it already.
- namer.py - these 20 lines provide a UI that allows me to assign proper names to buddys, and combines things across protocols so that the database will represent one person with all of their log lines combined from separate IM protocols
- htmlmaker.py - these 260 lines of python then read through the database and generate some numbers and pretty html+css graphs for my and your enjoyment.
People in the last month
| Seth | |
| San | |
| Campbell | |
| David | |
| Jim | |
| Jason | |
| Joey | |
| AOL | |
| Victor |
Lines in the last month by time of day
282
186
93
0
|
||||||||||||||||||||||||
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
|---|
People in the last Year
| David | |
| San | |
| Jim | |
| Seth | |
| Victor | |
| Campbell | |
| Jason | |
| Greggory | |
| Lilia | |
| Chris |
Lines in the last Year by time of day
5266
3475
1737
0
|
||||||||||||||||||||||||
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
|---|
People in all time
| Campbell | |
| Laura | |
| David | |
| San | |
| Sarah | |
| Melissa | |
| Jessica | |
| Gin | |
| Kelly | |
| Bethany | |
| Lindsey | |
| Chris | |
| Michael | |
| Richard | |
| Emmanuel | |
| Gabby | |
| Mark | |
| Christopher | |
| Gwen | |
| Seth | |
| Jim | |
| Rachel | |
| Daniel | |
| Jason | |
| Ashley |
Lines by time of day
99590
65729
32864
0
|
||||||||||||||||||||||||
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 |
|---|
Average lines per day since first seen
| San | |
| Laura | |
| Campbell | |
| David | |
| Jim | |
| Sarah | |
| Melissa | |
| Jessica | |
| Seth | |
| Chris | |
| Emmanuel | |
| Gin | |
| Kelly | |
| Lindsey | |
| Bethany | |
| Richard | |
| Michael | |
| Gabby | |
| Jason | |
| Victor | |
| Mark | |
| Joey | |
| Christopher | |
| Gwen | |
| Travis |
Average lines per day since first seen until day last seen (including empty days)
| Laura | |
| San | |
| Matt | |
| Jackie | |
| Campbell | |
| Sarah | |
| Emmanuel | |
| Kelly | |
| Jim | |
| David | |
| Lindsey | |
| Melissa | |
| Gin | |
| Jennifer | |
| Jessica | |
| Christopher | |
| Sara | |
| Chris | |
| Beverly | |
| Travis | |
| Seth | |
| Caroline | |
| Scott | |
| Bethany | |
| Richard |
Number of days seen
| Campbell | |
| David | |
| San | |
| Melissa | |
| Michael | |
| Gin | |
| Laura | |
| Sarah | |
| Richard | |
| Chris | |
| Daniel | |
| Gabby | |
| Bethany | |
| Mark | |
| Jessica | |
| Christopher | |
| Seth | |
| Jason | |
| Gwen | |
| Kelly | |
| Lindsey | |
| Jason | |
| AOL | |
| Becca | |
| Stephen |
Lines per month
31623
20871
10435
0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 2002 | 2003 | 2004 | 2005 | 2006 | 2007 | 2008 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

