#!/usr/bin/env ruby
require 'rubygems'
require 'mechanize'
require 'nokogiri'
mech = WWW::Mechanize.new
mech.get('http://www.multiwinia-ladder.net/externalgip.php')
doc = Nokogiri(mech.page.body)
games_with_players = doc.search('server').select { |xml_element| xml_element.at('players').inner_text.to_i > 1}
games_waiting = games_with_players.select { |xml_element| xml_element.at('status').inner_text == 'Waiting'}
puts "Games with players: #{games_with_players.length} (#{games_waiting.length} waiting)"
script to check if games are active
Moderators: jelco, bert_the_turtle
http://www.multiwinia-ladder.net/gamesinprogress.php ?
Also, there are widgets for both Firefox and Opera hosted on the ladder website, which may duplicate much of the functionality that you are looking for.
xander
Also, there are widgets for both Firefox and Opera hosted on the ladder website, which may duplicate much of the functionality that you are looking for.
xander
Who is online
Users browsing this forum: No registered users and 1 guest




