26 lines
614 B
Python
26 lines
614 B
Python
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(2023, 3)
|
|
|
|
# for i in range(2, 12):
|
|
# collect(2022, i + 1)
|
|
# for i in range(0, 12):
|
|
# collect(2023, i + 1)
|
|
# for i in range(5, 10):
|
|
# collect(2024, i + 1)
|