require 'open-uri' require 'nokogiri' url = 'http://www.yahoo.co.jp/' charset = nil html = open(url) do |f| charset = f.charset f.read end doc = Nokogiri::HTML.parse(html, nil, charset) p doc.title
doc = Nokogiri::HTML.parse(html, nil, charset)や
p doc.titleのdocって何ですか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。