Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request
- import json
- server_list = { '64.251.27.43':'8081' }
- for url in server_list:
- x = json.loads(urllib.request.urlopen('http://{}:{}'.format(url, server_list[url])).readline().decode('utf-8'))
- print('Name: {} Mode: {} Players: {}/{} URL/IP:{} Port: {} ModControl: {}'.format(x['server_name'], x['warp_mode'], x['player_count'], x['max_players'], url, x['port'], x['mod_control']))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement