agoragames / bnet_scraper

A Nokogiri-based scraper of Battle.net profiles. Currently this only includes Starcraft2.
MIT License
22 stars 7 forks source link

Ability to check if Battle.net is online for a region #3

Closed logankoester closed 12 years ago

logankoester commented 12 years ago

Ask the TL.net bot if Battle.net is currently online for a given region. This page is updated every 5 minutes. Call #fetch to refresh.

Examples:

BnetScraper::Starcraft2::Status.na  => 'Online'
BnetScraper::Starcraft2::Status.fea => 'Offline'
BnetScraper::Starcraft2::Status.cn  => nil (China is unsupported)
BnetScraper::Starcraft2::Status.fetch => [
  {:region=>"North America", :status=>"Online"},{:region=>"Europe", :status=>"Online"},
  {:region=>"Korea", :status=>"Online"}, {:region=>"South-East Asia", :status=>"Online"}
]
cadwallion commented 12 years ago

Looks good.