def dongchengguohu_v2():
    jsessionid = util.get_jsessionid_from_file()
    print 'jsessionid is:' + jsessionid
    dongchengguohu_addtocart(jsessionid)
    user_info_html = dongchengguohu_getuserinfo(jsessionid)
    dongchengguohu_parse_user_info(user_info_html)
    tasks = []

    while True:
        order_infos = db.dongchengguohu_select()
        for order_info in order_infos():
            if order_info[7] != '0':
                continue
            wangqianhetong = order_info[0]
            kehuxingming = order_info[1]
            kehushengfenzheng = order_info[2]
            guohuzhuanyuan = order_info[3]
            guohuzhuanyuan_zuihou = order_info[4]
            yuyueshijian = order_info[5]
            dateType = order_info[6]
            svpdUpLoadType = '-1'
            spvdName = '东城预约过户'
            svpdUpLoadTypeDetail = '-1'
            spvdCode = 'ZN0871'
            svpdDetailCategory = '101336'
            checkBoxProduct = '2969_2257_2826'
            eoContent = '卖方姓名:' + wangqianhetong + ',买方姓名:' + kehuxingming + ',网签合同号:' + kehushengfenzheng + ',契税票号:' + guohuzhuanyuan + ',过户专员:' + guohuzhuanyuan_zuihou + ',预约时间:' + yuyueshijian + ',' + dateType
            post_info = {'tsname' : tsname, 'tsuserid' : tsuserid, 'marketemail' : marketemail,
                        'tsphone' : tsphone, 'wangqianhetong' : wangqianhetong, 'kehuxingming' : kehuxingming,
                        'kehushengfenzheng' : kehushengfenzheng, 'guohuzhuanyuan' : guohuzhuanyuan, 'yuyueshijian' : yuyueshijian,
                        'dateType' : dateType, 'svpdUpLoadType' : svpdUpLoadType, 'spvdName' : spvdName,
                        'svpdUpLoadTypeDetail' : svpdUpLoadTypeDetail, 'spvdCode' : spvdCode, 'svpdDetailCategory': svpdDetailCategory,
                        'checkBoxProduct' : checkBoxProduct, 'eoContent' : eoContent, 'post_account' : account}
            tasks.append(gevent.spawn(dongchengguohu_submitorder, jsessionid, post_info, order_info))
        gevent.joinall(tasks)
def dongchengjiaoshui_v2():
    jsessionid = util.get_jsessionid_from_file()
    print 'jsessionid is:' + jsessionid
    dongchengjiaoshui_addtocart(jsessionid)
    user_info_html = dongchengjiaoshui_getuserinfo(jsessionid)
    dongchengjiaoshui_parse_user_info(user_info_html)
    tasks = []

    for order_info in db.dongchengjiaoshui_select():
        if order_info[6] != '0':
            continue
        wangqianhetong = order_info[0]
        kehuxingming = order_info[1]
        kehushengfenzheng = order_info[2]
        guohuzhuanyuan = order_info[3]
        yuyueshijian = order_info[4]
        dateType = order_info[5]
        svpdUpLoadType = '-1'
        spvdName = '东城预约缴税'
        svpdUpLoadTypeDetail = '-1'
        spvdCode = 'ZN0870'
        svpdDetailCategory = '101336'
        checkBoxProduct = '2925_2188_2566'
        #eoContent = '网签合同号:' + wangqianhetong + ',客户姓名:' + kehuxingming + ',身份证号:' + kehushengfenzheng + ',过户专员:' + guohuzhuanyuan + ',预约时间:' + yuyueshijian + ',' + dateType
        eoContent = '网签合同号:' + wangqianhetong + ',客户姓名:' + kehuxingming + ',客户身份证号:' + kehushengfenzheng + ',过户专员:' + guohuzhuanyuan + ',预约时间:' + yuyueshijian + ',' + dateType
        post_info = {'tsname' : tsname, 'tsuserid' : tsuserid, 'marketemail' : marketemail,
                     'tsphone' : tsphone, 'wangqianhetong' : wangqianhetong, 'kehuxingming' : kehuxingming,
                     'kehushengfenzheng' : kehushengfenzheng, 'guohuzhuanyuan' : guohuzhuanyuan, 'yuyueshijian' : yuyueshijian,
                     'dateType' : dateType, 'svpdUpLoadType' : svpdUpLoadType, 'spvdName' : spvdName,
                     'svpdUpLoadTypeDetail' : svpdUpLoadTypeDetail, 'spvdCode' : spvdCode, 'svpdDetailCategory': svpdDetailCategory,
                     'checkBoxProduct' : checkBoxProduct, 'eoContent' : eoContent, 'post_account' : account}
        #dongchengjiaoshui_sync(jsessionid, post_info, order_info)
        #dongchengjiaoshui_async(jsessionid, post_info, order_info)
        tasks.append(gevent.spawn(dongchengjiaoshui_submitorder, jsessionid, post_info, order_info))
    gevent.joinall(tasks)
Esempio n. 3
0
def fengtaijiaoshui_v2():
    jsessionid = util.get_jsessionid_from_file()
    print 'jsessionid is:' + jsessionid
    fengtaijiaoshui_addtocart(jsessionid)
    user_info_html = fengtaijiaoshui_getuserinfo(jsessionid)
    fengtaijiaoshui_parse_user_info(user_info_html)
    tasks = []

    for order_info in db.fengtaijiaoshui_select():
        if order_info[6] != '0':
            continue
        wangqianhetong = order_info[0]
        kehuxingming = order_info[1]
        kehushengfenzheng = order_info[2]
        guohuzhuanyuan = order_info[3]
        yuyueshijian = order_info[4]
        dateType = order_info[5]
        svpdUpLoadType = '-1'
        spvdName = '丰台预约缴税'
        svpdUpLoadTypeDetail = '-1'
        spvdCode = 'ZN0154'
        svpdDetailCategory = '101336'
        checkBoxProduct = '2379_1709_2020'
        eoContent = '网签合同号:' + wangqianhetong + ',客户姓名:' + kehuxingming + ',客户身份证号:' + kehushengfenzheng + ',过户专员:' + guohuzhuanyuan + ',预约时间:' + yuyueshijian + ',' + dateType
        post_info = {'tsname' : tsname, 'tsuserid' : tsuserid, 'marketemail' : marketemail,
                     'tsphone' : tsphone, 'wangqianhetong' : wangqianhetong, 'kehuxingming' : kehuxingming,
                     'kehushengfenzheng' : kehushengfenzheng, 'guohuzhuanyuan' : guohuzhuanyuan, 'yuyueshijian' : yuyueshijian,
                     'dateType' : dateType, 'svpdUpLoadType' : svpdUpLoadType, 'spvdName' : spvdName,
                     'svpdUpLoadTypeDetail' : svpdUpLoadTypeDetail, 'spvdCode' : spvdCode, 'svpdDetailCategory': svpdDetailCategory,
                     'checkBoxProduct' : checkBoxProduct, 'eoContent' : eoContent, 'post_account' : account}
        #fengtaijiaoshui_sync(jsessionid, post_info, order_info)
        #fengtaijiaoshui_async(jsessionid, post_info, order_info)
        tasks.append(gevent.spawn(fengtaijiaoshui_submitorder, jsessionid, post_info, order_info))
    gevent.joinall(tasks)
def fengtaiguohu_v2():
    jsessionid = util.get_jsessionid_from_file()
    print 'jsessionid is:' + jsessionid
    fengtaiguohu_addtocart(jsessionid)
    user_info_html = fengtaiguohu_getuserinfo(jsessionid)
    fengtaiguohu_parse_user_info(user_info_html)
    tasks = []

    #bp
    while True:
        order_infos = db.fengtaiguohu_select()
        for order_info in order_infos():
            #for order_info in db.fengtaiguohu_select():
            if order_info[11] != '0':
                continue
            wangqianhetong = order_info[0]
            kehuxingming = order_info[1]
            kehushengfenzheng = order_info[2]
            guohuzhuanyuan = order_info[3]
            guohuzhuanyuan_zuihou = order_info[4]
            yuyueshijian = order_info[5]
            dateType = order_info[6]
            svpdUpLoadType = '-1'
            spvdName = '丰台预约过户'
            svpdUpLoadTypeDetail = '-1'
            spvdCode = 'ZN0873'
            svpdDetailCategory = '101336'
            checkBoxProduct = '3438_2815_3298'
            eoContent = '卖方姓名:' + wangqianhetong + ',卖方身份证号码:' + kehuxingming + ',买方姓名:' + kehushengfenzheng + ',买方身份证号码:' + guohuzhuanyuan + ',网签合同号:' + guohuzhuanyuan_zuihou_1 + ',契税票号:' + guohuzhuanyuan_zuihou_2 + ',过户专员姓名:' + guohuzhuanyuan_zuihou_3 + ',过户专员电话:' + guohuzhuanyuan_zuihou_4 + ',预约时间:' + yuyueshijian
            post_info = {
                'tsname': tsname,
                'tsuserid': tsuserid,
                'tsphone': tsphone,
                'wangqianhetong': wangqianhetong,
                'kehuxingming': kehuxingming,
                'kehushengfenzheng': kehushengfenzheng,
                'guohuzhuanyuan': guohuzhuanyuan,
                'guohuzhuanyuan_zuihou': guohuzhuanyuan_zuihou_1,
                #'guohuzhuanyuan_zuihou' : guohuzhuanyuan_zuihou_2,
                #'guohuzhuanyuan_zuihou' : guohuzhuanyuan_zuihou_3,
                #'guohuzhuanyuan_zuihou' : guohuzhuanyuan_zuihou_4,
                'yuyueshijian': yuyueshijian,
                'dateType': dateType,
                'svpdUpLoadType': svpdUpLoadType,
                'spvdName': spvdName,
                'svpdUpLoadTypeDetail': svpdUpLoadTypeDetail,
                'spvdCode': spvdCode,
                'svpdDetailCategory': svpdDetailCategory,
                'checkBoxProduct': checkBoxProduct,
                'eoContent': eoContent,
                'post_account': account
            }
            #fengtaiguohu_sync(jsessionid, post_info, order_info)
            #fengtaiguohu_async(jsessionid, post_info, order_info)
            tasks.append(
                gevent.spawn(fengtaiguohu_submitorder, jsessionid, post_info,
                             order_info))
        gevent.joinall(tasks)
def dongchengjiaoshui_get_user_pay_account():
    jsessionid = util.get_jsessionid_from_file()
    url = 'http://bjxwgl.homelink.com.cn/order/order_getUserPayAccountList.action'
    opener = urllib2.build_opener()
    opener.addheaders.append(('Cookie', 'JSESSIONID=' + jsessionid))
    #form_data = post_info_map
    spvdCode = 'ZN0870,'
    svpdDetailCategory = '101336,'
    form_data = {'spvdCode':spvdCode, 'svpdDetailCategory':svpdDetailCategory}
    data_encoded = urllib.urlencode(form_data)
    fd_read = opener.open(url, data_encoded)
    html_content = fd_read.read()
    soup = BeautifulSoup(html_content, 'html.parser')
    for item in soup.find_all(name='input', attrs={'name':'post_account'}):
        #only return personal account
        return item.get('value').encode('utf-8')
Esempio n. 6
0
def fengtaijiaoshui_get_user_pay_account():
    jsessionid = util.get_jsessionid_from_file()
    url = 'http://bjxwgl.homelink.com.cn/order/order_getUserPayAccountList.action'
    opener = urllib2.build_opener()
    opener.addheaders.append(('Cookie', 'JSESSIONID=' + jsessionid))
    #form_data = post_info_map
    spvdCode = 'ZN0154,'
    svpdDetailCategory = '101336,'
    form_data = {'spvdCode':spvdCode, 'svpdDetailCategory':svpdDetailCategory}
    data_encoded = urllib.urlencode(form_data)
    fd_read = opener.open(url, data_encoded)
    html_content = fd_read.read()
    soup = BeautifulSoup(html_content, 'html.parser')
    for item in soup.find_all(name='input', attrs={'name':'post_account'}):
        #only return personal account
        return item.get('value').encode('utf-8')
Esempio n. 7
0
def dongchengjiaoshui():
    jsessionid = util.get_jsessionid_from_file()
    print 'jsessionid is:' + jsessionid
    dongchengjiaoshui_addtocart(jsessionid)
    user_info_html = dongchengjiaoshui_getuserinfo(jsessionid)
    dongchengjiaoshui_parse_user_info(user_info_html)

    for order_info in db.dongchengjiaoshui_select():
        if order_info[6] != '0':
            continue
        wangqianhetong = order_info[0]
        kehuxingming = order_info[1]
        kehushengfenzheng = order_info[2]
        guohuzhuanyuan = order_info[3]
        yuyueshijian = order_info[4]
        dateType = order_info[5]
        svpdUpLoadType = '-1'
        spvdName = '东城预约缴税'
        svpdUpLoadTypeDetail = '-1'
        spvdCode = 'ZN0870'
        svpdDetailCategory = '101336'
        checkBoxProduct = '2925_2188_2566'
        eoContent = '网签合同号:' + wangqianhetong + ',客户姓名:' + kehuxingming + ',身份证号:' + kehushengfenzheng + ',过户专员:' + guohuzhuanyuan + ',预约时间:' + yuyueshijian + ',' + dateType
        post_info = {
            'tsname': tsname,
            'tsuserid': tsuserid,
            'marketemail': marketemail,
            'tsphone': tsphone,
            'wangqianhetong': wangqianhetong,
            'kehuxingming': kehuxingming,
            'kehushengfenzheng': kehushengfenzheng,
            'guohuzhuanyuan': guohuzhuanyuan,
            'yuyueshijian': yuyueshijian,
            'dateType': dateType,
            'svpdUpLoadType': svpdUpLoadType,
            'spvdName': spvdName,
            'svpdUpLoadTypeDetail': svpdUpLoadTypeDetail,
            'spvdCode': spvdCode,
            'svpdDetailCategory': svpdDetailCategory,
            'checkBoxProduct': checkBoxProduct,
            'eoContent': eoContent,
            'post_account': account
        }
        dongchengjiaoshui_sync(jsessionid, post_info, order_info)
def fengtaiguohu_v2():
    jsessionid = util.get_jsessionid_from_file()
    print 'jsessionid is:' + jsessionid
    fengtaiguohu_addtocart(jsessionid)
    user_info_html = fengtaiguohu_getuserinfo(jsessionid)
    fengtaiguohu_parse_user_info(user_info_html)
    tasks = []

    #bp
    while True:
        order_infos = db.fengtaiguohu_select()
        for order_info in order_infos():
        #for order_info in db.fengtaiguohu_select():
            if order_info[11] != '0':
                continue
            wangqianhetong = order_info[0]
            kehuxingming = order_info[1]
            kehushengfenzheng = order_info[2]
            guohuzhuanyuan = order_info[3]
            guohuzhuanyuan_zuihou = order_info[4]
            yuyueshijian = order_info[5]
            dateType = order_info[6]
            svpdUpLoadType = '-1'
            spvdName = '丰台预约过户'
            svpdUpLoadTypeDetail = '-1'
            spvdCode = 'ZN0873'
            svpdDetailCategory = '101336'
            checkBoxProduct = '3438_2815_3298'
            eoContent = '卖方姓名:' + wangqianhetong + ',卖方身份证号码:' + kehuxingming + ',买方姓名:' + kehushengfenzheng + ',买方身份证号码:' + guohuzhuanyuan + ',网签合同号:' + guohuzhuanyuan_zuihou_1 + ',契税票号:' + guohuzhuanyuan_zuihou_2 + ',过户专员姓名:' + guohuzhuanyuan_zuihou_3 + ',过户专员电话:' + guohuzhuanyuan_zuihou_4 + ',预约时间:' + yuyueshijian
            post_info = {'tsname' : tsname, 'tsuserid' : tsuserid,
                        'tsphone' : tsphone, 'wangqianhetong' : wangqianhetong, 'kehuxingming' : kehuxingming,
                        'kehushengfenzheng' : kehushengfenzheng, 'guohuzhuanyuan' : guohuzhuanyuan,
                        'guohuzhuanyuan_zuihou' : guohuzhuanyuan_zuihou_1,
                        #'guohuzhuanyuan_zuihou' : guohuzhuanyuan_zuihou_2,
                        #'guohuzhuanyuan_zuihou' : guohuzhuanyuan_zuihou_3,
                        #'guohuzhuanyuan_zuihou' : guohuzhuanyuan_zuihou_4,
                        'yuyueshijian' : yuyueshijian,
                        'dateType' : dateType, 'svpdUpLoadType' : svpdUpLoadType, 'spvdName' : spvdName,
                        'svpdUpLoadTypeDetail' : svpdUpLoadTypeDetail, 'spvdCode' : spvdCode, 'svpdDetailCategory': svpdDetailCategory,
                        'checkBoxProduct' : checkBoxProduct, 'eoContent' : eoContent, 'post_account' : account}
            #fengtaiguohu_sync(jsessionid, post_info, order_info)
            #fengtaiguohu_async(jsessionid, post_info, order_info)
            tasks.append(gevent.spawn(fengtaiguohu_submitorder, jsessionid, post_info, order_info))
        gevent.joinall(tasks)
Esempio n. 9
0
def fengtaijiaoshui():
    jsessionid = util.get_jsessionid_from_file()
    print 'jsessionid is:' + jsessionid
    fengtaijiaoshui_addtocart(jsessionid)
    user_info_html = fengtaijiaoshui_getuserinfo(jsessionid)
    fengtaijiaoshui_parse_user_info(user_info_html)

    for order_info in db.fengtaijiaoshui_select():
        if order_info[6] != '0':
            continue
        wangqianhetong = order_info[0]
        kehuxingming = order_info[1]
        kehushengfenzheng = order_info[2]
        guohuzhuanyuan = order_info[3]
        yuyueshijian = order_info[4]
        dateType = order_info[5]
        if dateType == "上午":
            yuyueshijianduan = "10:00-11:00"
        elif dateType == "下午":
            yuyueshijianduan = "14:00-15:00"
        else:
            print 'yuyueshijianduan error'
        svpdUpLoadType = '-1'
        spvdName = '丰台预约缴税'
        svpdUpLoadTypeDetail = '-1'
        spvdCode = 'ZN0154'
        svpdDetailCategory = '101336'
        checkBoxProduct = '2379_1709_2020'
        #eoContent = '网签合同号:' + wangqianhetong + ',客户姓名:' + kehuxingming + ',身份证号:' + kehushengfenzheng + ',过户专员:' + guohuzhuanyuan + ',预约时间:' + yuyueshijian + ',' + dateType
        eoContent = '网签合同号:' + wangqianhetong + ',客户姓名:' + kehuxingming + ',客户身份证号:' + kehushengfenzheng + ',过户专员:' + guohuzhuanyuan + ',预约时间:' + yuyueshijian + ',' + dateType + ',' + yuyueshijianduan
        post_info = {'tsname' : tsname, 'tsuserid' : tsuserid, 'marketemail' : marketemail, 'yuyueshijianduan' : yuyueshijianduan,
                     'tsphone' : tsphone, 'wangqianhetong' : wangqianhetong, 'kehuxingming' : kehuxingming,
                     'kehushengfenzheng' : kehushengfenzheng, 'guohuzhuanyuan' : guohuzhuanyuan, 'yuyueshijian' : yuyueshijian,
                     'dateType' : dateType, 'svpdUpLoadType' : svpdUpLoadType, 'spvdName' : spvdName,
                     'svpdUpLoadTypeDetail' : svpdUpLoadTypeDetail, 'spvdCode' : spvdCode, 'svpdDetailCategory': svpdDetailCategory,
                     'checkBoxProduct' : checkBoxProduct, 'eoContent' : eoContent, 'post_account' : account}
        #fengtaijiaoshui_sync(jsessionid, post_info, order_info)
        fengtaijiaoshui_async(jsessionid, post_info, order_info)