Contents

Hackety Hack

Hackety Hack

blog = Table("MyBlog").recent(10)
Web.page {
  blog.each do |entry|
    title entry[:title]
    puts entry[:editbox]
  end
}

blog

Hackety Hack

**

url = "http://api.flickr.com/services/feeds/photos_public.gne?format=rss2&tags="
Web.popup {
  Web.fetch(url + ask("何の写真にする?")).items.each { |item|
    a Picture(item.description[/[^"]+.jpg/])
  }
}

url_fa = "http://productrak.com/amazon/rss.cgi?view=best"
url_pic = "http://images.amazon.com/images/P/"
url_bs = "http://blogsearch.google.co.jp/blogsearch_feeds?output=rss"
 
Web.fetch(url_fa + "&node=466280").items.each { |i|
  asin = i.link[41..50]
  puts i.title, Picture(url_pic + "#{asin}.jpg")
  puts Web.fetch(url_bs + "&q=#{asin}+-amagle").items
}
Last modified: 2007-06-08