示例#1
0
def get_url():
    urlheader = "http://123.234.129.238:3989/NmfcDataService.asmx/GetNmfcDataNew"
    requestUrlList = []
    postgreCommand = PostgreCommand()
    postgreCommand.connectPostgre()
    paramList = postgreCommand.allHistorySelectData()
    postgreCommand.closePostgre()
    for item in paramList:
        parameter = {'taskFlag': 'TF_08', 'args': item[0]}
        requestParameter = urlencode(parameter)
        requestUrl = urlheader + "?" + requestParameter
        requestUrlList.append(requestUrl)
    return requestUrlList
示例#2
0
def get_url():
    urlheader = "http://123.234.129.238:3989/NmfcDataService.asmx/GetNmfcDataNew"
    paramList = []
    requestUrlList = []
    postgreCommand = PostgreCommand()
    postgreCommand.connectPostgre()
    paramList = postgreCommand.allHistorySelectData()
    postgreCommand.closePostgre()
    address = ['中国','日本','中国香港','美国','中国台湾','韩国']
    for item in paramList:
        for add in address:
            parameter = {
                'taskFlag': 'TF_07',
                'args': item[0] + ',' + add
            }
            requestParameter = urlencode(parameter)
            requestUrl = urlheader + "?" + requestParameter
            requestUrlList.append(requestUrl)
    return requestUrlList