# File lib/rir/document.rb, line 131 def self.get_url(name) atts = REXML::Document.new(Net::HTTP.get(URI.parse("http://en.wikipedia.org/w/api.php?action=query&titles=#{URI.escape name}&inprop=url&prop=info&format=xml")).toutf8).elements['api/query/pages/page'].attributes atts['fullurl'] if atts['missing'].nil? end