def general_template(tb, url, col, conp): m = web() setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, # 表名 "col": col, # 字段名 "conp": conp, # 数据库连接 "num": 10, # 线程数量 } m = web() m.write(**setting)
def general_template(tb, url, col, conp): m = web() setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": conp, "num": 1, } m = web() m.write(**setting)
def general_template(tb, url, col, f, conp): m = web() setting = { "url": url, "f1": f(f1), "f2": f(f2), "tb": tb, "col": col, "conp": conp, "num": 10, "total": 10 } m = web() m.write(**setting)
def general_template(tb, url, col, conp): m = web() setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, # 数据库名 "col": col, # 数据库字段名 "conp": conp, "num": 2, 'total':10 } m = web() m.write(**setting)
def cdc(conp,data,diqu,i=-1,headless=True): data=data.copy() if i==-1: data=data else: data=data[i:i+1] for w in data: setting={ "url":w[1], "f1":w[3], "f2":w[4], "tb":w[0]+"_cdc", "col":w[2], "conp":conp, "num":4, "total":10, "headless":headless } m=web() m.write(**setting) cdc_sql(conp,w[0]) gg_cdc(conp,diqu)
def general_template(tb,url,col,mid,midd,conp): m=web() setting={ "url":url, "f1":midd(f1), "f2":mid(f2), "tb":tb, "col":col, "conp":conp, "num":3, 'total':20 } m=web() m.write(**setting)
def kbjl(): setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def dailiren_xx(total): setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 4, "total": total } m = web() m.write(**setting)
def fangqizhongbiao_gs(): url = "http://www.jy.whzbtb.com/V2PRTS/AbandonNoticeInfoListInit.do" col = ["name", "href", "biaoduanxuhao", "fqdw", "ggstart_time", "ggstatus"] tb = "fangqizhongbiao_gs" setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 10 } m = web() m.write(**setting)
def zgys_chqing(): url = "http://www.jy.whzbtb.com/V2PRTS/PrequalificationClarifyInfoListInit.do" col = ["name", "href", "zblb", "yswj", "zbfangshi", "zhaobiaoren"] tb = 'zgys_chqing' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def zbyichang(): url = "http://www.jy.whzbtb.com/V2PRTS/TenderAbnormalReportInfoListInit.do" col = ["name", "href", "status", "zhaobiaoren", "zbdaili", "jianguanbumen"] tb = 'zbyichang' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def jyr_yejixx(): url = "http://www.jy.whzbtb.com/V2PRTS/AchievementInfoListInit.do" col = ["name", "href", "dwmc", "zblb", "zhongbiao_time", "zhongbiaojia"] tb = 'jyr_yejixx' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def tbr_xx(): url = "http://www.jy.whzbtb.com/V2PRTS/TendererInfoListInit.do" col = ["name", "cn"] tb = 'tbr_xx' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def jyr_xx(): url = "http://www.jy.whzbtb.com/V2PRTS/CorpInfoListInit.do" col = ["name", "href", "gslx", "zhuce_time", "zhuce_zj"] tb = 'jyr_xx' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def est_tables(conp,data,headless=True): data=data.copy() for w in data: setting={ "url":w[1], "f1":w[3], "f2":w[4], "tb":w[0], "col":w[2], "conp":conp, "num":10, "headless":headless } m=web() m.write(**setting)
def biangen_gg(): url = "http://www.jy.whzbtb.com/V2PRTS/AmendBulletinInfoListInit.do" col = ["name", "status", "href", "ggstart_time", "yuangg_bh"] tb = 'biangen_gg' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 4 } m = web() m.write(**setting)
def zbr_xx(total): url = "http://www.jy.whzbtb.com/V2PRTS/TendereeInfoListInit.do" col = ["name", "cn"] tb = 'zbr_xx_cdc' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 4, "total": total } m = web() m.write(**setting)
def zhongbiaojieguo_gs(): url = "http://www.jy.whzbtb.com/V2PRTS/WinBidBulletinInfoListInit.do" col = [ "name", "biaoduanxuhao", "zhongbiaoren", "zhongbiaojia", "href", "zhongbiaobh", "jsdw", "dailidw" ] tb = "zhongbiaojieguo_gs" setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 10 } m = web() m.write(**setting)
def kzj_gs(): url = "http://www.jy.whzbtb.com/V2PRTS/ControlPriceListInit.do" col = [ "name", "href", "zbggbh", "zhaobiaoren", "ggstart_time", "ggend_time" ] tb = 'kzj_gs' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def zhaobiao_gg(): url = """http://www.jy.whzbtb.com/V2PRTS/TendererNoticeInfoListInit.do""" col = [ "name", "status", "href", "bh", "zbr", "ggstart_time", "ggend_time", "zczj", "laiyuan", "pbbanfa" ] tb = "zhaobaio_gg" setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 10, } m = web() m.write(**setting)
def zgys_gs(): url = "http://www.jy.whzbtb.com/V2PRTS/PrequalificationPublicityInfoListInit.do" col = [ "name", "ysdw", "href", "zbgg", "djbh", "ysstart_time", "ysend_time", "chouqian_time", "chouqian_didian" ] tb = 'zgys_gs' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 10 } m = web() m.write(**setting)
def fabao_gs(): url = "http://www.jy.whzbtb.com/V2PRTS/ContractRecordDirectlyInfoListInit.do" col = [ "name", "href", "jiandubumen", "bjbh", "jsdw", "pizhunwh", "sigongdw", 'jihuagq', "gczhaojia" ] tb = 'fabao_gs' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def zbwj_chqing(): url = "http://www.jy.whzbtb.com/V2PRTS/UnbidDocumentsClarifyInfoListInit.do" col = [ "name", "biaoduanxuhao", "href", "bjbh", "zbdjbh", "zbbh", "xmzbdw", "zblb", "zbfangshi", "zbdaili" ] tb = 'zbwj_chqing' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def zhongbiao_gs(): url = "http://www.jy.whzbtb.com/V2PRTS/WinningPublicityInfoListInit.do" col = [ "name", "href", "biaoduanxuhao", "zblr", "zbfangshi", "zhongbiaoren", "zhongbiaojia", "ggend_time" ] tb = 'zhongbiao_gs' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 10, } m = web() m.write(**setting)
def zhuceren_xx(): url = "http://www.jy.whzbtb.com/V2PRTS/RegPersonInfoListInit.do" col = [ "name", "dwmc", "gender", "xueli", "leixing", "dj", "zhuanye", "bh", "youxiaoqi" ] tb = 'zhuceren_xx' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 20 } m = web() m.write(**setting)
def xmdj(): url = "http://www.jy.whzbtb.com/V2PRTS/OpeningReserveInfoListInit.do" col = [ "ggstart_time", "name", "href", "biaoduanxuhao", "leixing", "kb_didian", "kb_shi", "pb_shi", "jy_leibie", "zb_leibie", "jiandudanwei", "total_tbr", "zhaobiaoren" ] tb = 'xmdj' setting = { "url": url, "f1": f1, "f2": f2, "tb": tb, "col": col, "conp": __conp, "num": 10 } m = web() m.write(**setting)
def work(conp,data,diqu,i=-1,headless=True): data=data.copy() if i==-1: data=data else: data=data[i:i+1] for w in data: setting={ "url":w[1], "f1":w[3], "f2":w[4], "tb":w[0], "col":w[2], "conp":conp, "num":10, "headless":headless } m=web() m.write(**setting) gg(conp,diqu)