Posted By

sou on 03/31/08


Tagged

ruby


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

webstic


puchipuchi API


 / Published in: Ruby
 

Mac onyl

  1. require 'open-uri'
  2. require 'rexml/document'
  3.  
  4. open('http://m.unoh.net/puchipuchi') {|r| d=REXML::Document.new(r.read).elements;
  5. puts d['/rsp/comment'].text;
  6. v=d['/rsp/voice'].text.chomp; (v=~/mp3$/) ? exec("open -a safari #{v}") : puts(v)}

Report this snippet  

You need to login to post a comment.