コード例 #1
0
    def run():
        items = MySql_Utility().GetUniversity_USASysno2()
        its = []
        for item in items:
            url = 'http://www.sharewithu.com/dat/college/college/'+str(item["rSysno"])+'/logo.png'
            item["url"] = url
            item["fileName"] = "USA"
            its.append(item)

        DownLoadImageUtility.run(its)
コード例 #2
0
    def run():
        items = MySql_Utility().GetUniversity_UKInfo()

        task_threads=[]
        p = 1
        its = []
        for item in items:
            jEntity = json.loads(item["content"])
            item["url"] = jEntity["logo"].encode("utf-8")
            item["fileName"] = "UK"
            its.append(item)

        DownLoadImageUtility.run(its)