読者です 読者をやめる 読者になる 読者になる

twilog の統計情報から follower 数の変化を数値で取り出す方法

原発

ある Twitter ユーザが Twilog に登録している場合、その人の follower 数の推移などを見ることができます。例えば僕の場合、@AkiraOkumura だと、ここに行けば↓こういうグラフが見られます。この blog に幾つか原発関連の記事を書いたりしたことで、震災以降に大きく follower 数が増えました。


▲ @AkiraOkumura の follower 数の推移。3.11 以降に増加し、一旦落ち着いて、なぜか忘れたけど再度増加。

一人だけのグラフを眺めているだけなら、twilog の生成した図を開けば済みますが、複数の人と比較したりするには、やはり元の数値を落としてきて自分で作図したいのが理系脳。さて、どうやるか。

1. まずは Twilog の統計情報を見る

最初に、http://twilog.org/AkiraOkumura/stats/7-3 のような統計情報を開かなくてはいけません。このようなページを開くことで、Twilog の server 側に統計情報の書かれた file が upload されます。

(このページに行かないと、上記の図も出ない可能性が大。)

2. akiraokumura-7-3.txt を開く

すると、http://twilog.org/chart-dir/a/akiraokumura-7-3.txt という text file が生成されます。この中に必要な情報が詰まっています。ここで注意が必要なのは、必ず http://twilog.org/AkiraOkumura/stats/7-3 を先に開かなくては駄目、ということ。

また、@AkiraOkumura の場合は chart-dir の次の階層が /a になり、また例えば @hayano の場合は /h になります。

3. 適当なソフトで作図する

↓中身は日付と人数の羅列です。

&title= ,30,&
&x_label_style=10,#000000,2,16&
&x_axis_steps=16&
&y_ticks=5,10,9&
&line=2,#ff7f7f&
&values=182,182,183,183,184,183,185,184,183,184,186,187,186,187,187,189,189,191,192,191,190,195,197,197,197,196,196,195,197,196,196,195,195,198,197,200,200,200,201,201,202,202,202,201,201,203,203,203,202,204,204,202,203,203,204,205,205,208,207,207,207,205,206,207,206,206,206,207,207,208,209,210,209,209,210,209,209,208,208,207,210,209,207,207,207,209,208,209,212,213,213,217,223,224,226,228,227,227,228,228,227,227,226,225,224,226,225,226,225,225,228,228,231,231,233,232,232,233,234,234,234,237,238,236,235,248,248,253,255,253,254,252,252,255,255,255,256,257,257,258,259,259,260,263,265,264,263,259,269,269,270,270,270,270,269,274,275,279,282,281,283,284,289,290,292,290,288,288,288,285,286,285,284,285,285,317,317,318,423,450,502,511,620,645,670,690,736,811,832,960,993,1006,1015,1018,1017,1022,1067,1108,1113,1154,1188,1200,1207,1225,1499,1757,1816,1826,1841,1863,1943,1996,2003,2042,2047,2074,2098,2135,2253,2361,2377,2436,2482,2502,2520,2536,2554,2564,2587,2599,2588,2589,2633,2640,2653,2747,2803,2815,2824,2868,2869,2875,2876,2871,2877,2881,2872,2881,2881,2906,2909,2910,2906,2906,2919,2931,2931,2944,2945,2948,2951,2958,3071,3060,3059,3065,3061,3077,3104,3135,3145,3150,3192,3202,3214,3214,3230,3234,3246,3262,3262,3267,3306,3339,3394,3398,3397,3394,3397,3443,3444,3443,3440,3442,3439,3437,3436,3438,3434,3428,3421,3422,3419,3412,3413,3428,3433,3438,3434,3440,3444,3451,3463,3464,3465,3504,3520,3530,3525,3525,3525,3525,3521,3517,3518,3520,3520,3522,3519,3516,3509,3512,3517,3520,3518,3515,3512,3523,3524,3519,3517,3526,3529,3527,3526,3526,3527,3530,3527,3525,3525,3525,3527,3532,3537,3534,3540,3543,3539,3528,3524,3525,3530,3526,3527,3525,3521,3518,3505,3505,3506,3502,3506,3505,3514,3601,3627,3635,3641,3640,3644,3650,3654,3652,3649,3672,3695,3699,3703,3700,3698,3699,3698,3693,3696,3697,3732,3758,3794,3837,3861,3887,3905,3906,3920,3922,3924,3923,3923,3919,3920,3915,3911,3907,3908,3908,3908,3908,3906,3906,3906,3909,3939,3978,3985,3989,3994,4000,3998,3993,4011,4014,4014,4016,4010,4012,4012,4010,4001,3999,3997,3995,3990,3998,3995,3995,3993,3996,4001,4001,4013,4021,4038,4045,4042,4045,4045,4039,4039,4035,4035&
&x_labels=08/14,08/15,08/16,08/17,08/18,08/19,08/20,08/21,08/30,09/01,09/07,09/08,09/09,09/10,09/11,09/12,09/13,09/14,09/15,09/16,09/17,09/18,09/19,09/20,09/21,09/22,09/24,09/25,09/26,09/27,09/28,09/29,09/30,10/01,10/02,10/03,10/05,10/06,10/07,10/08,10/09,10/10,10/11,10/12,10/13,10/14,10/15,10/16,10/17,10/18,10/19,10/21,10/22,10/23,10/24,10/25,10/26,10/27,10/28,10/29,10/30,10/31,11/01,11/02,11/03,11/04,11/05,11/06,11/07,11/08,11/09,11/10,11/11,11/12,11/13,11/14,11/15,11/16,11/17,11/18,11/19,11/24,11/25,11/26,11/29,11/30,12/01,12/02,12/03,12/04,12/05,12/06,12/07,12/08,12/09,12/10,12/11,12/12,12/14,12/15,12/16,12/17,12/18,12/19,12/20,12/21,12/22,12/23,12/24,12/25,01/03,01/04,01/05,01/06,01/07,01/08,01/10,01/11,01/12,01/13,01/14,01/15,01/16,01/17,01/18,01/19,01/20,01/21,01/22,01/23,01/24,01/25,01/26,01/27,01/28,01/29,01/30,01/31,02/01,02/02,02/03,02/04,02/05,02/06,02/07,02/08,02/09,02/10,02/11,02/12,02/13,02/14,02/15,02/16,02/17,02/18,02/19,02/20,02/21,02/22,02/23,02/24,02/25,02/26,03/01,03/02,03/03,03/04,03/05,03/06,03/07,03/08,03/09,03/11,03/12,03/13,03/14,03/15,03/16,03/17,03/18,03/19,03/20,03/21,03/22,03/23,03/24,03/25,03/26,03/27,03/28,03/29,03/30,03/31,04/01,04/02,04/03,04/04,04/05,04/06,04/07,04/08,04/09,04/10,04/11,04/12,04/13,04/14,04/15,04/16,04/17,04/18,04/19,04/20,04/21,04/22,04/23,04/24,04/25,04/26,04/27,04/28,04/29,04/30,05/02,05/03,05/04,05/05,05/06,05/07,05/08,05/09,05/10,05/11,05/12,05/13,05/14,05/15,05/16,05/17,05/18,05/19,05/21,05/22,05/23,05/24,05/25,05/26,05/27,05/28,05/29,05/30,05/31,06/01,06/02,06/03,06/04,06/05,06/06,06/07,06/08,06/09,06/10,06/11,06/12,06/13,06/14,06/15,06/16,06/17,06/18,06/19,06/20,06/21,06/22,06/23,06/24,06/25,06/26,06/27,06/28,06/29,06/30,07/01,07/02,07/05,07/06,07/07,07/08,07/09,07/10,07/11,07/12,07/13,07/14,07/15,07/16,07/17,07/18,07/19,07/20,07/21,07/22,07/23,07/24,07/25,07/26,07/27,07/28,07/29,07/30,07/31,08/01,08/02,08/03,08/04,08/05,08/06,08/07,08/08,08/09,08/10,08/15,08/20,08/21,08/22,08/23,08/24,08/25,08/26,08/27,08/28,08/29,08/30,08/31,09/02,09/03,09/04,09/05,09/06,09/07,09/08,09/09,09/10,09/11,09/12,09/13,09/14,09/15,09/16,09/17,09/18,09/19,09/21,09/24,09/25,09/27,10/02,10/03,10/05,10/06,10/07,10/09,10/10,10/11,10/12,10/13,10/14,10/16,10/17,10/18,10/19,10/20,10/21,10/22,10/23,10/24,10/25,10/26,10/27,10/28,10/29,10/30,10/31,11/01,11/02,11/03,11/04,11/05,11/06,11/07,11/08,11/09,11/10,11/11,11/12,11/13,11/14,11/15,11/16,11/17,11/18,11/19,11/20,11/21,11/22,11/23,11/24,11/25,11/26,11/27,11/28,11/29,11/30,12/01,12/02,12/03,12/04,12/05,12/06,12/07,12/08,12/09,12/10,12/11,12/12,12/13,12/14,12/15,12/16,12/17,12/18,12/19,12/20,12/21,12/22,12/23,12/24,12/25,12/26,12/27,12/28,12/29,12/30,12/31,01/01,01/02,01/03,01/04,01/05,01/06,01/07,01/08,01/09,01/10,01/11,01/12,01/13,01/14,01/15,01/16&
&y_min=0&
&y_max=4500&
&bg_colour=#ffffff&
&x_axis_colour=#808080&
&x_grid_colour=#dddddd&
&y_axis_colour=#808080&
&y_grid_colour=#dddddd&

適当なソフトで整形すれば、複数人の比較ができます。


原発関連で有名な方々をいくつか。

みんな震災以降に急上昇していますね。@hayano さんの場合、突発的に上昇して、その後ゆるやかに減少。@hayakawayukio さんの場合、訓告事件のときにドカンと増えています。