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))
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))
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)
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)
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)