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