bleything / miscellany

Miscellaneous toys and scripts

This URL has Read+Write access

bleything (author)
Mon Dec 29 13:25:57 -0800 2008
commit  6a6ace5deb0e09a4e3ebaf38e3336936889b751f
tree    80d01dcd20c2c86882164752b6fd8fa287c1fab8
parent  eb331ff8516687bba589a6084d0fbb2cf0cc2566
miscellany / ljgroupanalyzer
name age message
..
file LICENSE Loading commit data...
file README
file ljgroupanalyze.pl
ljgroupanalyzer/README
========================================================================
ljgroupanalyze.pl
Copyright 2005-2008 Ben Bleything <ben@bleything.net>
Provided under the BSD license.
========================================================================

This little script can be used to analyze a jbackup-generated dump and
tell you what posts have used what friends groups.  By default, listing
posts marked Friends Only is disabled.  To enable it, edit the script
and change the line:

my $ignore_fo = 1;

to

my $ignore_fo = 0;

This will cause the script to also list posts that are FO.

The only thing you need to do is use jbackup to dump your journal.
Refer to the jbackup usage doc for instructions on how.  Then simply
invoke friendanalysis.pl thusly:

./ljgroupanalyze.pl <username>

This will find the jbackup file and go to town on it.  Be warned, you
will be asked for your password.  This is done so that we can fetch the
names of the groups from the server.

If you don't want it to ask your password, try the simple analyzer:

./ljgroupanalyze-simple.pl <username>

This doesn't hit the server (and therefore doesn't require your
password) but the output is somewhat more difficult to deal with.  The
choice, as they say, is yours.

I've tried hard to make it relatively error-resistant.  Okay, that's a
lie, but someday I will.  If you find bugs or optimizations, please let
me know.