def scrape_raffle_for_raffle(page)
      # Reag classed some things "raffle_infomation". That's spelled right.
      infos = page.parser.css('.raffle_infomation')

      # Elements of the main raffle info table.
      raffle_tds = infos[3].css('td')

      # 'kabc123' for http://tf2r.com/kabc123.html'
      link_snippet = extract_link_snippet(page.uri.path)
      title = extract_title(infos[0].text)
      description = raffle_tds[1].text

      # This doesn't work right now, because Miz just displays "10%" in the
      # page HTML and updates it with JS after a call to the API.
      # win_chance = /(.+)%/.match(infos.css('#winc').text)[1].to_f / 100

      start_time = extract_start_time(raffle_tds[9])
      end_time = extract_end_time(raffle_tds[11])

      {link_snippet: link_snippet, title: title, description: description,
       start_time: start_time, end_time: end_time}
    end
def scrape_raffle_for_raffle(page)
      # Reag classed some things "raffle_infomation". That's spelled right.
      infos = page.parser.css('.raffle_infomation')

      # Elements of the main raffle info table.
      raffle_tds = infos[3].css('td')

      # 'kabc123' for http://tf2r.com/kabc123.html'
      link_snippet = extract_link_snippet(page.uri.path)
      title = extract_title(infos[0].text)
      description = raffle_tds[1].text

      # This doesn't work right now, because Miz just displays "10%" in the
      # page HTML and updates it with JS after a call to the API.
      # win_chance = /(.+)%/.match(infos.css('#winc').text)[1].to_f / 100

      start_time = extract_start_time(raffle_tds[9])
      end_time = extract_end_time(raffle_tds[11])

      {link_snippet: link_snippet, title: title, description: description,
       start_time: start_time, end_time: end_time}
    end
Scrapes a raffle page for some information about the raffle.

 The information is incomplete. This should be used in conjunction with
 the API as part of TF2R::Raffle.

 @example
   p = s.fetch('http://tf2r.com/kstzcbd.html')
   s.scrape_raffle_for_raffle(p) #=>
   {:link_snippet=>"kstzcbd",
    :title=>"Just one refined [1 hour]",
    :description=>"Plain and simple.",
    :start_time=>2012-10-29 09:51:45 -0400,
    :end_time=>2012-10-29 09:53:01 -0400}

 @param page [Mechanize::Page] the raffle page.
 @return [Hash] a partial representation of the raffle.
   * :link_snippet (+String+) — the "raffle id" in the URL.
   * :title (+String+) — the raffle's title.
   * :description (+String+) — the raffle's "message".
   * :start_time (+Time+) — the creation time of the raffle.
   * :end_time (+Time+) — the projects/observed end time for the raffle.