J'ai essayé le getter Zundko avec python2 de paiza.
https://paiza.io/projects/BrBom7LRiSiqGGU5Hz0i6Q
# coding: utf-8
import random
import urllib2
def zundoko():
fp = urllib2.urlopen('http://ohijs0.paas.jp-e1.cloudn-service.com/zundoko', None, 500)
html = fp.read()
fp.close()
return html
i = 0
while 1:
r = zundoko()
if r == "Doco":
print "Doco",
if i == 4:
break
i = 0
else:
print "Bouse",
i = i + 1
print "Ki yo shi!"
Recommended Posts