#!/usr/local/bin/ruby require 'open-uri' require "pp" require 'uri' #
¥160
#https://www.google.co.jp/search?site=&q=新宿~渋谷 電車 from = "渋谷" to = "新宿" url_before_escape = "https://www.google.co.jp/search?site=&q=#{from}~#{to} 電車" url = URI.escape(url_before_escape) #p url_escape pp url