#!/usr/bin/env python # -*- encoding: utf-8 -*- ''' @Contact : liuyuqi.gov@msn.cn @Time : 2023/12/03 03:09:35 @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved. @Desc : enter point ''' from crawl_sse import Sse from crawl_sse import Cninfo from crawl_sse.options import parse_args import sys if __name__=='__main__': args = parse_args() if args['command'] == 'generate': sse = Sse() sse.crawl() elif args['command'] == 'search': cninfo =Cninfo() cninfo.download() elif args['command'] == 'help': pass elif args['command'] == 'version': print('1.0.0') else: print('command error, please use --help to get help') sys.exit(1)