Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
User Journal

Journal the_mad_poster's Journal: Version 0.1a - Come'n Geeddit 6

Trollback visitors:

Don't use the link below. Go here instead and get the updated version. It actually works.

If you need instructions look here. If it doesn't work anymore. Email my public address.

------------------------

Code here (plain text - right click save it). Note that there's a list of switches at the top of the code now. Anything marked with a * isn't implemented yet. Basic usage to rip all JEs and archive them to disk is still:

perl getslash.pl -Nyour_name -a/usr/home/you

Windows note: The script is set for testing in a UNIX environment. Change '#!/usr/bin/perl' to '#!c:/perl/bin/perl' for Windows. If that doesn't work, the path there is the path to the perl.exe file, wherever you installed it. Change it to that path (but use forward slashes, not backslashes).

Changelog

Alright. If you do the sequential rip, you're limited to 50 unless you remove the hooks for it. If you do the sequential rip (i.e., you don't use the -s switch for 'single mode') it is STRONGLY recommended that you use the -p switch for 'paranoid mode'. Somebody pointed out to me that Slashdot only allows you to tap the RSS feed every thirty seconds, so the be safe, you ought to use the -p switch the first time you archive your journal. If you don't use -p, there's a (random + 4) second delay. The random number is somewhat rudimentary now, but the basic gist is that the more data you need to rip (the more JEs you're going to rip in total) the slower you're allowed to do it (Em's worst off as far as I can tell - he'll basically be limited to around 2.5K/second ... sorry dude). You're not my problem and neither is Slashdot, so if you do something dumb like remove the hooks for the random delays and get yourself banned for pulling all your content at once, don't come crying to me.

Oh... and the building wasn't on fire. Smoke from some idiot burning trash blew into the open windows (it was a very nice evening, thank you) and set the alarm off on the second floor).

This discussion has been archived. No new comments can be posted.

Version 0.1a - Come'n Geeddit

Comments Filter:
  • both took the time out to type "hold on, I think the building is on fire..." I was IMing her one night and she typed that. But her building's fire alarm goes off all the time for no reason, so she wasn't too worried.
  • As the Britney Spears of Journal Land, (all puff, no substance) it doesn't bother me that when we do give this damned place the heave-ho, my shiz will die.

    I'm ok with that.

    Now, if someone else isn't, well, heh. Sorry.
  • Is this working for anyone on Windows?

    C:\leo\main\moi\slashdot2>perl getslash.pl -p -Nlpetrazickis
    ripping...
    Getting UID from lpetrazickis...
    Use of uninitialized value in concatenation (.) or string at getslash.pl line 249.
    Found UID
    Use of uninitialized value in concatenation (.) or string at getslash.pl line 137.

    Looks like we're done here. Want to save the options file?
    Choice (Y/n): y

    Filename or blank line for default name:

    Saving file...
    Use of uninitialized value in concatenation (.) or s
    • It's finding your user page, but it won't find your ID because of the lowercase name you put in vs. the way it's listed on your Info page. The temporary fix is to use the name "LPetrazickis" with the -N switch.

      Since /. isn't case sensitive, I'll fix that in the code so that it can find your user ID with case-insensitivity.

System checkpoint complete.

Working...