Skip to content
Browse files

Add small scores parser from mobile espn

  • Loading branch information...
1 parent b68ae27 commit 48abdb7494aaf7fe47bfd4d470506fdac1559197 @sharipov-ru sharipov-ru committed Apr 5, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 small_espn_nhl_parser.rb
View
13 small_espn_nhl_parser.rb
@@ -0,0 +1,13 @@
+require 'rubygems'
+require 'nokogiri'
+require 'open-uri'
+
+games = []
+url = "http://m.espn.go.com/nhl/scoreboard?date=20110403"
+doc = Nokogiri::HTML(open(url))
+
+doc.css("div div a").each do |item| # gametable - html table of current game
+ game = item.text
+ games << game
+end
+puts games

0 comments on commit 48abdb7

Please sign in to comment.
Something went wrong with that request. Please try again.