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

      # The main 'a' element, containing the creator's username.
      user_anchor = infos[2].css('a')[0]

      steam_id = extract_steam_id(user_anchor.attribute('href').to_s)
      username = user_anchor.text
      avatar_link = infos[1].css('img')[0].attribute('src').to_s
      posrep = /(\d+)/.match(infos.css('.upvb').text)[1].to_i
      negrep = /(\d+)/.match(infos.css('.downvb').text)[1].to_i

      # The creator's username color. Corresponds to rank.
      color = extract_color(user_anchor.attribute('style').to_s)

      {steam_id: steam_id, username: username, avatar_link: avatar_link,
       posrep: posrep, negrep: negrep, color: color}
    end
def scrape_raffle_for_creator(page)
      # Reag classed some things "raffle_infomation". That's spelled right.
      infos = page.parser.css('.raffle_infomation')

      # The main 'a' element, containing the creator's username.
      user_anchor = infos[2].css('a')[0]

      steam_id = extract_steam_id(user_anchor.attribute('href').to_s)
      username = user_anchor.text
      avatar_link = infos[1].css('img')[0].attribute('src').to_s
      posrep = /(\d+)/.match(infos.css('.upvb').text)[1].to_i
      negrep = /(\d+)/.match(infos.css('.downvb').text)[1].to_i

      # The creator's username color. Corresponds to rank.
      color = extract_color(user_anchor.attribute('style').to_s)

      {steam_id: steam_id, username: username, avatar_link: avatar_link,
       posrep: posrep, negrep: negrep, color: color}
    end
Scrapes a raffle page for information about the creator.

 @example
   p = s.fetch('http://tf2r.com/kstzcbd.html')
   s.scrape_raffle_for_creator(p) #=>
   {:steam_id=>76561198061719848,
    :username=>"Yulli",
    :avatar_link=>"http://media.steampowered.com/steamcommunity/public/images/avatars/bc/bc9dc4302d23f2e2f37f59c59f29c27dbc8cade6_full.jpg",
    :posrep=>11458,
    :negrep=>0,
    :color=>"70b01b"}

 @param page [Mechanize::Page] the raffle page.
 @return [Hash] a representation of a user, the raffle creator.
   * :steam_id (+Fixnum+) — the creator's SteamID64.
   * :username (+String+) — the creator's username.
   * :avatar_link (+String+) — a link to the creator's avatar.
   * :posrep (+Fixnum+) — the creator's positive rep.
   * :negrep (+Fixnum+) — the creator's negative rep.
   * :color (+String+) — hex color code of the creator's username.