run_shipinhao_recommend.py 556 B

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. # @Author: wangkun
  3. # @Time: 2022/8/31
  4. import os
  5. import sys
  6. import time
  7. sys.path.append(os.getcwd())
  8. # from crawler_shipinhao.main.common import Common
  9. # from crawler_shipinhao.main.shipinhao_recommend import Recommend
  10. from main.common import Common
  11. from main.shipinhao_recommend import Recommend
  12. class Main:
  13. @staticmethod
  14. def main():
  15. for i in range(2):
  16. Recommend.start_wechat('recommend')
  17. Common.del_logs('recommend')
  18. time.sleep(5)
  19. if __name__ == '__main__':
  20. Main.main()