L
lrlebron
I was using this simple script to parse some links from a web page
require 'open-uri'
require 'hpricot'
strLink = "http://sportsline.com/nfl/scoreboard/2006/week9"
@Doc = Hpricot(open(strLink))
@doc.search("a").each do |a|
if a.inner_html.include?"GameCenter"
puts 'http://sportsline.com' + a.attributes['href']
end
end
The script worked fine with the stable gem (0.4) but breaks with the
development gem (4.76). Unfortunately, I cannot find any documentation
that tells me what has changed between them
Any ideas would be greatly appreciated.
thanks,
Luis
require 'open-uri'
require 'hpricot'
strLink = "http://sportsline.com/nfl/scoreboard/2006/week9"
@Doc = Hpricot(open(strLink))
@doc.search("a").each do |a|
if a.inner_html.include?"GameCenter"
puts 'http://sportsline.com' + a.attributes['href']
end
end
The script worked fine with the stable gem (0.4) but breaks with the
development gem (4.76). Unfortunately, I cannot find any documentation
that tells me what has changed between them
Any ideas would be greatly appreciated.
thanks,
Luis