Files
material-api/web/tasks/once/collect.py

22 lines
463 B
Python
Raw Normal View History

2024-05-29 10:21:31 +08:00
from collectors import Collector
def collect(year=2023, month=11):
2024-07-09 18:11:22 +08:00
"""
整理发布价格
"""
2024-05-29 10:21:31 +08:00
collector = Collector(year, month)
collector.run()
if __name__ == '__main__':
from core.factory import ClientApp
2024-06-05 09:21:00 +08:00
with ClientApp().app_context():
2024-07-11 18:14:17 +08:00
for i in range(2, 12):
collect(2022, i + 1)
2024-07-12 11:11:28 +08:00
for i in range(0, 12):
2024-07-11 18:14:17 +08:00
collect(2023, i + 1)
for i in range(0, 5):
collect(2024, i + 1)