# Picasa Image Grabber # by Steve Hanna # vividmachines.com # v.01 require 'rss/1.0' require 'rss/2.0' require 'open-uri' #change the source line to the RSS feed of your albums source = "http://picasaweb.google.com/data/feed/base/user/steve.c.hanna?kind=album&alt=rss&hl=en_US" content = "" img_src = "" open(source) do |s| content = s.read end rss = RSS::Parser.parse(content, false) lalign,ralign,align = :left,:right,:left rss.channel.items.each do |i| if i.description =~ // then img_src = $& end picture = "
#{img_src}
#{i.title}
" align = (align == ralign ) ? lalign : ralign puts picture end puts ""