File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -125,6 +125,22 @@ scraper.scrape
125125}
126126```
127127
128+ ## BnetScraper::Starcraft2::Status
129+
130+ Scraping is only possible if the site is up. Use this if you want to verify the failed scrape is because the site is down:
131+
132+ ``` ruby
133+ BnetScraper ::Starcraft2 ::Status .na # => 'Online'
134+ BnetScraper ::Starcraft2 ::Status .fea # => 'Offline'
135+ BnetScraper ::Starcraft2 ::Status .cn # => nil (China is unsupported)
136+ BnetScraper ::Starcraft2 ::Status .fetch # => [
137+ {:region =>" North America" , :status =>" Online" },
138+ {:region =>" Europe" , :status =>" Online" },
139+ {:region =>" Korea" , :status =>" Online" },
140+ {:region =>" South-East Asia" , :status =>" Online" }
141+ ]
142+ ```
143+
128144# Contribute!
129145
130146I would love to see contributions! Please send a pull request with a feature branch containing specs
You can’t perform that action at this time.
0 commit comments