code复用
MORE 去除10个py,将countrycode作为方法参数,maintance一个.py
wlazy = ['us','jp', 'uk', 'de', 'fr', 'ca', 'es', 'it', 'mx', 'in'] if 1>0: for w in wlazy: execfile('firstPage_'+w.upper()+'.py')
1 import os 2 os.startfile("E:AMZ_Spider\bat\firstPage.reviews.bat")
1 python E:AMZ_SpiderSpiderReviewsfirstPage_us.py 2 python E:AMZ_SpiderSpiderReviewsfirstPage_jp.py 3 python E:AMZ_SpiderSpiderReviewsfirstPage_uk.py 4 python E:AMZ_SpiderSpiderReviewsfirstPage_de.py 5 python E:AMZ_SpiderSpiderReviewsfirstPage_fr.py 6 python E:AMZ_SpiderSpiderReviewsfirstPage_ca.py 7 python E:AMZ_SpiderSpiderReviewsfirstPage_es.py 8 python E:AMZ_SpiderSpiderReviewsfirstPage_it.py 9 python E:AMZ_SpiderSpiderReviewsfirstPage_mx.py 10 python E:AMZ_SpiderSpiderReviewsfirstPage_in.py