from collectors import Collector from commons.models.price_publish import PricePublish def collect(year=2023, month=11): """ 整理发布价格 """ PricePublish.clean(year, month) # 清空当月数据 collector = Collector(year, month) collector.run() if __name__ == '__main__': from core.factory import ClientApp with ClientApp().app_context(): collect(2025, 4) # for i in range(4): # collect(2025, i + 1) # for i in range(9,12): # collect(2023, i + 1) # for i in range(12): # collect(2024, i + 1)