?

Log in

No account? Create an account
How to test entry archiving - LiveJournal Client Discussions [entries|archive|friends|userinfo]
LiveJournal Client Discussions

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

How to test entry archiving [Apr. 27th, 2004|07:12 pm]
LiveJournal Client Discussions

lj_clients

[krolain]
[mood |curiouscurious]

Greetings everyone,

I'm in the process of adding a function to archive a user's entire account entries (and then keep it up to date subsequently). Then the user will be able to export it to various format.

I tried to use the test account, but since it's deleted, I cannot 'download' any entires. I've tried using my own personal account, but after a few test, I now get the error where LJ notices I'm using the same backup date too frequently (initial date).

The reason for this is I'm testing the stage where I'm backing up the entire account and saving it locally (trying to figure out the best format), but I need to test the backup the entire account quite frequently, to make sure my file format is right, all messages are downloaded right and such.

So, is there a way for me to test this, or another test account that can be used, or something modified in my account so I can test this feature? Or should I simply wait a certain amount of time for LJ to reset it's backup request counter and redo the test then? (This will slow me down quite a bit).

I'm also afraid of using my account too often cause it may be viewed as abuse, but it's only testing.

Any suggestions would be appreciated.

Thanks.
linkReply

Comments:
From: evan
2004-04-27 05:18 pm (UTC)
(I can't fix the LJ-side limit for you, but I would if I could.)

Whenever I worked on backups I ran my own LJ install. I used to provide it publicly, but it's down now. (I had modified it so there was no limit to the number of backups you can run.)

Your best bet, other than doing that, is to just wait.
(Reply) (Thread)
[User Picture]From: krolain
2004-04-27 07:54 pm (UTC)
Well, thanks for the help :-) Was mostly curious more than anything else.

I may try installing my own LJ code on my computer and hopefully this will help. Though depending on the complexity, I may just have to wait then.

Again, mostly curious to see if there was a way.
(Reply) (Parent) (Thread)
[User Picture]From: pyran
2004-04-27 05:41 pm (UTC)
I'm also afraid of using my account too often cause it may be viewed as abuse

If that's the case, why provide a feature to your users that could be construed as abuse on the server?

What I did was to just handle exported XML files (http://www.livejournal.com/export.bml). It's not the most convenient way in the world of doing things, but it ensures that users won't get in trouble for abusing the server (since I just know it'll come back to me in the form of "your client got me banned!"). The major downside is that the page will generate only one month at a time (I really wish it would get the entire journal, but oh well), but it's better than entry-by-entry.
(Reply) (Thread)
[User Picture]From: krolain
2004-04-27 06:11 pm (UTC)
If that's the case, why provide a feature to your users that could be construed as abuse on the server?
Because by the time I'm done with properly implementing this feature, it won't be viewed as abuse. It will be implemented properly and such.
It's just for testing purposes that it may be viewed that way. It does require one to 'hit' the server more than a regular user would with this feature. I won't implement any feature that would get a user banned *winks*

What I did was to just handle exported XML files (http://www.livejournal.com/export.bml). It's not the most convenient way in the world of doing things, but it ensures that users won't get in trouble for abusing the server (since I just know it'll come back to me in the form of "your client got me banned!"). The major downside is that the page will generate only one month at a time (I really wish it would get the entire journal, but oh well), but it's better than entry-by-entry.
Aye, it works, but with current LJ protocols you can download the entire archive with a few commands... I just want to be able to test it properly. And the protocol allows you to download the entire account... more efficient than the export :-) I'm sure users would enjoy that.

Again, my request was just for testing purposes, not final user implementation.
(Reply) (Parent) (Thread)
From: gadsounet
2004-04-27 05:56 pm (UTC)
(Reply) (Thread)
[User Picture]From: krolain
2004-04-27 09:05 pm (UTC)
Thanks for the information. Though I'm using JAVA to code my program, and I know little about PERL, but I can waddle through.

Also, I do have the code implemented already (for the most part). I just want to be able to test it.

Still, the comments extraction may be a good thing to look into.
(Reply) (Parent) (Thread)
[User Picture]From: quirrc
2004-04-27 08:51 pm (UTC)
if an account is deleted you can always login as that account and undelete it. the easiest way to test is to create another account, for example at test.livejournal.org
(Reply) (Thread)
From: jdlinx
2004-05-01 02:31 pm (UTC)
not if it has been suspended.
(Reply) (Parent) (Thread)