from lib import get_brands_ids, get_colors, get_materials, get_sizes, constants, get_categories, get_countries def debug(): # Get brands ids from names [Readly slow scrap] # get_brands_ids.exec(constants.BRANDS_FOLDER, constants.BRANDS_OUTFILE) # Get materials get_materials.exec(constants.MATERIALS_FOLDER, constants.MATERIALS_OUTFOLDER, constants.MATERIALS_OUTFILE) # Get sizes get_sizes.exec(constants.SIZES_FOLDER, constants.SIZES_OUTFOLDER, constants.SIZES_OUTFILE) # Get colors get_colors.exec(constants.COLORS_OUTFILE) # Get Categories get_categories.exec(constants.CATEGORIES_INFILE, constants.CATEGORIES_OUTFILE, constants.CATEGORIES_TREE_OUTFILE) # Get countries get_countries.exec(constants.COUNTRIES_OUTFILE) if(__name__=="__main__"): debug()