#!/bin/sh

# livejournal_download.sh

# go to http://www.livejournal.com/export.bml
#
# use either a packet capture or developer tools in your web browser to capture
# the cookie and post strings when you download one month
#
# insert these strings below where indicated.
#
# then, to download everything from 2009, invoke like this:
# for i in `seq -w 01 12`; do ./livejournal_download.sh 2009 $i; done
# (will create 2009-01.csv, 2009-02.csv, ...)

wget --no-cookies \
 --header="Cookie: <complete set of cookie strings>"\
 --post-data="<post string>"\
 "http://www.livejournal.com/export_do.bml?authas=dementedleaf" -O $1-$2.csv

