title: Extract information from website using nokogiri
body: <p>I'm trying to figure out how to extract the information on a file using nokogiri.</p>
  
  <p>The information generated isn't an xml or html file.. so not sure how to get this!</p>
  
  <pre><code>def get_summoner_account
      url = "http://elophant.com/api/v1/euw/getSummonerByName?summonerName=Heggom&amp;key=0r57xO0H2A7ukQi6gUbG "
      doc = Nokogiri::HTML(open(url))
  
      name = doc.xpath("name").collect(&amp;:text)
      acctID = doc.xpath("acctID").collect(&amp;:text)
      summonerId = doc.xpath("summonerId").collect(&amp;:text)
  
      puts accID
      puts name
      puts summonerID
  
  end
  </code></pre>