?

Log in

No account? Create an account
August 2nd, 2002 - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

August 2nd, 2002

LJ Friends Checker (perl) [Aug. 2nd, 2002|12:21 am]
LiveJournal Client Discussions

lj_clients

[gharris]
[mood |satisfiedsatisfied]
[music |Soundtracks - Angelo Badalamenti - Haunting & Heartbreaking]

I typically check lj from work over a telnet connection, and have been thinking about a way to have an alert when my friends page is updated. The other day I found the 'checkfriends' mode, and whipped up this little perl script. Its pretty simple in its operation and featureset, but it fits the bill.

It is written in Perl, and requires:
Term::ReadKey
HTML::Entities
Digest::MD5

It does:
Checks livejournal.com for updates to your friends page (using the quick-n-easy 'checkfriends' mode)
Continues polling until an update is found, then waits for you to tell it to start again.
When an update is found, it 'dings' the terminal.
You can, using '0' as the only commandline option, tell it not to poll, but only to check for updates once.

To provide login information, you can either edit the source file, and plug your information into the blanks, or do nothing and it will prompt you for your login information.

This was designed to be used inside a GNU Screen window, where the ding will flash the window and put a little '!' next to the windowname to let you know there is activity. It is GPL'd and therefore free.

Get it here!

Enjoy!
link11 comments|post comment

navigation
[ viewing | August 2nd, 2002 ]
[ go | Previous Day|Next Day ]