|Text-based Perl clients?
||[Jan. 27th, 2003|10:44 am]
LiveJournal Client Discussions
|||||Leftfield - Melt||]|
What Perl clients are out there? I've been using JLJ, but it seems to not take advantage of the fastservers so my post fails half of the time during normal usage hours. I'm looking for a replacement. Oh, yes, and anything that can handle multiple accounts would be great.
yeah. i know i've been slacking on it.
I'm working on updates for it to be out by the end of the week hopefully...
I use a poorly made LJ-posting script in perl but like you said, it fails alot. I was gonna add a bit to it so that it keeps retrying until the LJ server DOES accept it but.... I'm sure theres much better code out there =/
exists; it handles the fast cookie, but not multiple accounts. Despite claiming to no longer be maintaining it, I am working on a version 3.0 that will handle that (bigger, slower, and more featurrific than ever before!). Consider that vaporware for now, though.
I occasionally feel like, instead of further developing my text-based Python client, Charm
, I should just rewrite the thing in Perl and be done with it, it'd probably get a lot more users. ;)
If you're willing to try Python rather than Perl (python also comes installed by default with most Linux distributions), you might think about Charm, as it handles the fast-server cookie and multiple accounts, among other things.
I tried to use Charm, but I was getting a syntax error on like 510. I don't know python, so I couldn't trouble shoot it very effectively. Then I read over your site and realized it was written for Python 2 and the server I ran it on has an older version of Python. I assumed that your script uses syntax not supported by my old version of Python and gave up at that point. It's unlikely that Python will be upgraded any time soon, so I decided to stop searching the lj_cilents archives and just ask for perl clients since I know enough perl to get by and have all the latest and greatest perl modules installed.
If you make Charm compatible with older version of python, I'll give it a try. Hehe. Likely not worth it. If you port it to perl I'd try it. :-)
Give me a little bit more detail and I'll see what I can do. :)
1. What's the top line when you type 'python' at the shell? (i.e., what's the exact python version?)
2. What's the exact error message you get when trying to run Charm?
1: Python 1.5.2 (#1
, Sep 17 1999, 20:15:36) [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386
File "./charm.py", line 510
items = [ (v, k) for k, v in self.FriendSorter.items() ]
SyntaxError: invalid syntax
. I was using a Python 2.0-and-above feature there. I've now tested things on Python 1.5.2 and fixed the two compatibility issues.
You can download the new version, 1.2.1, from Charm's home page
. That should run fine on your system.
Incidently, I didn't know until earlier today (after reading your post) the thing about the fast cookie.
I've been busy for the past few hours integrating in all of the bugfixes and extra code that people have sent me since last april. whee!
2003-01-27 09:06 am (UTC)
My two are:
I have two. lj
, a command line client I wrote to learn about LWP, and butabot.pl, which is an IRC bot/lj-client written in Perl. The first would be better at handling multiple accounts, as you type the id/pwd in whenever you use it.