#coding:utf-8
'''
Created on 2017年11月2日 @author: li.liu
'''
import urllib
import urllib2
import re
for i in range(1,60):
try:
d={'shopId':'','page':''}
d['shopId']=str(i)
t=urllib.urlencode(d)
print d
url1='http://stylist.woyihome.com/yi/shopQueryDesignerVirtual'
reu=urllib2.Request(url=url1,data=t)
#print reu
red=urllib2.urlopen(reu).read()
#print red
s=re.findall('"commission":0.(\d\d)', red)
print s,'\n'
except:
print d,'错误'