manage.py 676 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. @author: Deepcold
  5. @file: manage.py
  6. @time: 2019/8/19 9:45
  7. """
  8. import datetime
  9. from config import CONFIG_DICT
  10. from bin.utils.read_yaml import read_yaml
  11. from deal_bidder import BidInfo
  12. config_name = CONFIG_DICT.get("product") # 更改加载的配置文件
  13. # config_name = CONFIG_DICT.get("develop") # 更改加载的配置文件
  14. CONFIG = read_yaml(config_name)
  15. if __name__ == '__main__':
  16. from bin.DailyEvent import DailyEvent
  17. bid_info = BidInfo(datetime.datetime.strftime(datetime.date.today(), "%Y-%m-%d"))
  18. # bid_info = BidInfo("2019-08-24")
  19. bid_info.parse_data()
  20. app = DailyEvent(CONFIG)
  21. app.run()