12345678910111213141516171819202122232425 |
- #!/usr/bin/env python
- # -*- encoding: utf-8 -*-
- '''
- @Contact : liuyuqi.gov@msn.cn
- @Time : 2023/04/02 12:50:36
- @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
- @Desc : enter point
- '''
- from crawl_secondhand import main
- import argparse
- parser = argparse.ArgumentParser(description='Crawl Secondhand')
- parser.add_argument('command', help='command to run')
- parser.add_argument('-l', '--log', help='log file path')
- if __name__=='__main__':
- args = parser.parse_args()
- if args.command == 'server':
- pass
- elif args.command == 'gui':
- pass
- elif args.command == 'run':
- main()
- else:
- parser.print_help()
|