These scripts require a Blogger XML Export file, you can download your blog's export file at Settings » Other » Blog Tools » Export blog.
Usage:
./b.py blog-MM-DD-YYYY.xml [post|comment]
It gives you an output like:
$ ./b.py blog-05-10-2013.xml post
2008-09 18 ############
2008-10 25 #################
2008-11 57 ########################################
[snip]
2013-03 21 ##############
2013-04 7 ####
2013-05 1
Total: 1140 posts
You can read more about this script in my blog post.
This script extracts published times from export file and converts them into Unix timestamp, it's for feeding other charting scripts.
bash-history-punchcard is a Python script.
Example commands and output image:
git clone https://gist.github.com/2011993.git b.py
git clone https://github.com/askedrelic/bash-history-punchcard.git bhp
cd b.py
./b2.py blog-05-10-2013.xml post > /tmp/posts.ts
cd ../bhp
git checkout 8a0a28959eb6bca8b55f0c5272b298aca10a18c4
./bashpunchard.py -c 696969,696969,696969,696969,696969,71bc78,ff91a4 -2 -i /tmp/posts.ts
The chart is display in local timezone. If the blog's timezone, say in PDT or PST, is different than local's, then
TZ=America/Los_Angeles ./bashpunchard.py -c 696969,696969,696969,696969,696969,71bc78,ff91a4 -2 -i /tmp/posts.ts
It should show in the blog's timezone.
You can read more about this script in Blogger posting punchcard.
With punchcard.awk
punchcard.awk is a AWK script and generates punchcard chart in ASCII.
Example commands and output image:
git clone https://gist.github.com/2011993.git b.py
git clone https://gist.github.com/5733726.git punchcard.awk
cd b.py
./b2.py blog-05-10-2013.xml post | ../punchcard.awk/punchcard.awk
+------------------------------------------------------------------------+
Mon | . . 0 . O o . O o o O O 0 O o 0 . o o O o O O . |
Tue | . O O . o . O O o O O o . . . . . o . . 0 o |
Wed | o . . o o 0 . o O . 0 . o o . . o o O O . O o |
Thu | . o . . . o o o o . o . O . o O o . O O . o o o |
Fri | o . . . O O o o . 0 . o . 0 o o o o . o 0 0 0 |
Sat | o . . . . 0 o o O O o o O . o . o o O o O . . o |
Sun | o . o . . o o O O O . o o . . . . . O o . o . |
+------------------------------------------------------------------------+
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
The chart is display in local timezone. If the blog's timezone, say in PDT or PST, is different than local's, then
./b2.py blog-05-10-2013.xml post | TZ=America/Los_Angeles ../punchcard.awk/punchcard.awk
It should show in the blog's timezone.
- Blogger Export Analyzer: script for analysis/statistics of Blogger blog.
Updated for https://yjlv.blogspot.com/2012/03/correlation-between-posts-count-and.html