__init__.py 501 B

123456789101112131415161718
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2022/05/24 13:07:28
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc : main function
  8. '''
  9. from crawl_xiaohua.crawl_xiaohua import CrawlXiaohua
  10. def server(config:str,argv=None):
  11. crawl_xiaohua = CrawlXiaohua(config)
  12. crawl_xiaohua.server(config=config)
  13. def run(extractor:str, cmd:str,argv=None):
  14. crawl_xiaohua = CrawlXiaohua()
  15. crawl_xiaohua.run(extractor, cmd)