blob: c935d7fc449d823637474614f23501a72e2fff8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/usr/bin/ruby
require 'json'
require 'net/http'
game = String.new
http = Net::HTTP.new('ffbans.org', 443)
http.use_ssl = true
#http.verify_mode = OpenSSL::SSL::VERIFY_NONE
response = JSON.parse(http.request(Net::HTTP::Get.new("/data.php?op=all")).body)
for ban in response
printf( "%-19s %-7s %3s %-20s\n", ban['Timestamp'], ban['Server'].to_s, ban['Rating'].to_s, ban['Name'] )
end
|