open-uri

    1熱度

    2回答

    我從來沒有使用過web服務和rails,顯然這是我需要學習的東西。 我選擇使用hpricot,因爲它看起來不錯。 反正_why一直不錯,足以提供對hpricot website下面的例子: #!ruby require 'hpricot' require 'open-uri' # load the RedHanded home page doc = Hpricot(open("http:/