LiveJournal has succeded in building a very large community. Lots and lots of blogs are started every minute at LJ and lots and lots of these blogs get updated every minute. Reading through these might be a very time consuming and pretty boring process though. Just to get an idea of how different are LJ users and their interests consider checking the last 30 pictures posted to LiveJournal. Every time you refresh that page, you get a different set. This a really cool time and bandwidth killer…
With this script I will terrorize my friends from today onwards. What it does is get all the recent posts from some LiveJournal blog and email them as separate messages to a list of recepients. Subject of the blog entry is used as a subject of the email. Body of the message contains of text and the permalink.
In order to use, first configure few simple variables at the beginning of the script, providing LJ credentials, list of recepients, address to use in the From: field and a file to keep the timestamp of the last syncronization.
Changes: in this version I have fixed encoding fo the body and subject. Body can now be recoded with Text::Iconv module to any encoding from the default UTF-8. Subjects are additionally fixed to be base64-encoded.
Some time ago I have registered at LiveJournal.com. Originally, I did it to be able to search for blogs by region. It turned out that this feature was available only to paid accounts. I thought that I won’t be needing this account anymore.
After some time I found myself posting comments to different LJ blogs using my account. But I was getting warning that my account is about to be deleted due to inactivity.
Today I got an interesting idea. I am getting emails from some mailing lists with jokes and funny stories. I usually forward the best ones to few friends of mine via email. Instead, I will post them in my LJ blog and will do the forwarding from there using RSS feed and a simple Perl script.
This way, I will be able to maintain my LJ account and share the funny stuff with more people, while doing less. Long live Perl and RSS!