Skip to content

Instantly share code, notes, and snippets.

@Signez
Created September 29, 2014 23:19
Show Gist options
  • Select an option

  • Save Signez/494f517800c48e149374 to your computer and use it in GitHub Desktop.

Select an option

Save Signez/494f517800c48e149374 to your computer and use it in GitHub Desktop.
def updateStatus(self):
# ... (so many frenglish code I can't read anymore)
numauditeurs = 0
hosts = ['live.synopslive.net:8000'] #, 'neomat.relay.synopslive.net:8000', 'bardyl.relay.synopslive.net:8000',
# 'bawaaaaah.relay.synopslive.net:8000']
for host in hosts:
for line in urllib2.urlopen('http://' + host + '/status3.xsl'):
try:
numauditeurs += int(line.split(":")[1].rstrip().rstrip(';'))
except:
pass
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment