Пример #1
0
def main(**args):
    modulepath = args['modulepath']
    finaldb_cut = os.path.join(modulepath, '../output/final.db.2')
    simdb = os.path.join(modulepath, '../output/sim.db')
    if os.path.exists(simdb):
        backup(simdb)
        os.remove(simdb)
    sim_merge(finaldb_cut, DB(simdb))
Пример #2
0
def main(**args):
    modulepath = args['modulepath']
    linkdb = os.path.join(modulepath, '../output/link.db')
    backup(linkdb)

    linkmeta = os.path.join(modulepath, '../output/link.meta')
    backup(linkmeta)
    run_linkspider(DB(linkdb), Meta(linkmeta))
Пример #3
0
def main(**args):
    modulepath = args['modulepath']
    finaldb_cut = os.path.join(modulepath, '../output/final.db.2')
    simdb = os.path.join(modulepath, '../output/sim.db')
    if os.path.exists(simdb):
        backup(simdb)
        os.remove(simdb)
    sim_merge(finaldb_cut, DB(simdb))
Пример #4
0
def main(**args):
    modulepath = args['modulepath']
    linkdb = os.path.join(modulepath, '../output/link.db')
    backup(linkdb)

    linkmeta = os.path.join(modulepath, '../output/link.meta')
    backup(linkmeta)
    run_linkspider(DB(linkdb), Meta(linkmeta))
Пример #5
0
def main(**args):
    modulepath = args['modulepath']
    finaldb_cut = os.path.join(modulepath, '../output/final.db.2')
    jsondb_house = os.path.join(modulepath, '../output/zufang.house.json')
    simdb = os.path.join(modulepath, '../output/sim.db')
    if os.path.exists(jsondb_house):
        backup(jsondb_house)
        os.remove(jsondb_house)
    gen_house(finaldb_cut, DB(jsondb_house), simdb)
Пример #6
0
def main(**args):
    modulepath = args['modulepath']
    pagedirs = os.path.join(modulepath, '../data/')
    contentdb = os.path.join(modulepath, '../output/content.db')
    backup(contentdb)
    process(pagedirs, contentdb)
Пример #7
0
def main(**args):
    modulepath = args['modulepath']
    pagedirs = os.path.join(modulepath, '../data/')
    contentdb = os.path.join(modulepath, '../output/content.db')
    backup(contentdb)
    process(pagedirs, contentdb)
Пример #8
0
def main(**args):
    modulepath = args['modulepath']
    contentdb = os.path.join(modulepath, '../data/content.db')
    housedb = os.path.join(modulepath, '../output/house.db')
    backup(housedb)
    process(contentdb, housedb)
Пример #9
0
def main(**args):
    modulepath = args['modulepath']
    contentdb = os.path.join(modulepath, '../data/content.db')
    housedb = os.path.join(modulepath, '../output/house.db')
    backup(housedb)
    process(contentdb, housedb)