Skip to content

Instantly share code, notes, and snippets.

@plindberg
Created January 4, 2012 21:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plindberg/1562129 to your computer and use it in GitHub Desktop.
Save plindberg/1562129 to your computer and use it in GitHub Desktop.
Archive your Jaiku on jaikuarchive.com!

As you may have heard, Jaiku is going away on January 15th. Perhaps you want to save your posts on Jaiku Archive. Here’s an easy way to do it, if you have a Mac or Unix machine.

Note that currently, you need Xcode on your Mac to be able to run this. Sorry for not realizing this up front. While it is free from the App Store, it would take you a while to download and install. However, I can’t guarantee that I’ll be able to rewrite the script to not require Xcode anytime soon.

If you have a Mac, hop into Terminal and enter the following, substituting “plindberg” for your Jaiku username.

If you’re on a Unix machine, you probably know what to do. But you’ll need Ruby 1.8.7 or later, and RubyGems.

bash < <(curl -s fleecelabs.se/jaikuslurp/) -s plindberg

The script remembers where it was, so just hit Ctrl-C to abort and then run it once again to resume. Or if it happens to crash. If you want to start over, do a rm /tmp/jaikuslurp*state.txt.

If you’re on Windows, I’m sorry. But if you have any ideas on how to get this to run easily on Windows, please post a comment below.

(If you want to know what this script does, view its source here. And if you want the old version, see this.)

@plindberg
Copy link
Author

No error checking whatsoever. Should you get an exception, note the most recent Jaiku URL with an ?offset= parameter. Then change line 5 to start from there again.

@moonhouse
Copy link

För mig dör den på http://lemonad.jaikuarchive.com/presence/11012465

Misstänker att det är den världsberömda ur-nockerten.

@moonhouse
Copy link

Jag ändrade rad 16 till:

begin
  agent.get(uri)
rescue Mechanize::ResponseCodeError
  $stderr.print "Error on fetch #{uri}"
end

@moonhouse
Copy link

och bytte ut rad 22 till:

page = page.link_with(text: /Older/, href: /offset/).click

@plindberg
Copy link
Author

Tack! Uppdaterade gisten.

@arnklint
Copy link

arnklint commented Jan 6, 2012

Where's teh like button :)

@jardenberg
Copy link

Where's teh flattr button?

@madr
Copy link

madr commented Jan 6, 2012

(y) Fungerade utmärkt på linux. (Arch linux) Vill också ha en flattr button ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment