Ich habe Zundko Getter mit Python2 von Paiza ausprobiert.
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 "Dung",
i = i + 1
print "Ki yo shi!"
Recommended Posts