Showing posts with label Ruby. Show all posts
Showing posts with label Ruby. Show all posts

Sunday, February 21, 2010

ruby-tumblr seems useful

ruby-tumblr

but it is a bit old...


require "tumblr" 

Tumblr::API.read("tumblr.dynamic-semantics.com") do |pager|
  data = pager.page(0)
  p data.tumblelog
  data.posts.each do |post|
    p post
  end
end 

Learning Tumblr API

Tumblr - blog-like service - provides API.
It is to be implemented over standard HTTP request.

Probably using Ruby is good enough...

http://www.ruby-lang.org/ja/man/html/Net_HTTPRequest.html

Ruby has HTTP libraries, so writing some scripts will do the job...?