Permalink
Browse files

fixed date issue with \!swineflu

  • Loading branch information...
1 parent 6dafaa3 commit e0464955d9d22f304e79fef1ce3e97964860b6db samlehman committed May 22, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 fatbot.rb
View
@@ -121,8 +121,8 @@ def ops?(nick)
url, shorturl, totals = "http://www.cdc.gov/h1n1flu/update.htm", "http://bit.ly/18L44G", []
begin
page = WWW::Mechanize.new.get(url)
- totals = (page/'.mSyndicate strong').map { |i| i.content }[1..4]
- timedate = (page/'.mSyndicate span').map { |i| i.content }[2]
+ totals = (page/'.mSyndicate strong').map { |i| i.content }[1..3]
+ timedate = (page/'.mSyndicate caption span').map { |i| i.content }[0]
totals[1].gsub!(/\t/,'')
raise "no totals" if totals.size < 3

0 comments on commit e046495

Please sign in to comment.