I’ve been playing around with Ruby for a while, and finally came up with something useful: rflick.rb, an uploader script written in Ruby. (You can definitely pick your language when it comes to command line uploaders.)
The actual development of the script was fairly easy: ruby’s built in support for option parsing, YAML, and XML made things simple. The only irritating part was the HTTP POST of the image file, which I found is not supported by the ruby’s (otherwise excellent) standard http lib. (In case you think this an unreasonable expectation, perl does this.) A rousing bout of googling lead me to this, which I used to extract a reasonably generic multipart/form-data helper class.
This is the first public release, so please let me know if you use it and if you discover any problems. If you’re a developer looking for the rest of the flickr API in Ruby, you want this. (Which I initially found here, which lead to the creation of the upload script. And now you know… the rest of the story.)
Posted by Bill Stilwell at March 24, 2005 09:59 PM