12345678910111213141516171819202122232425262728293031323334 |
- #!/usr/bin/env python
- # -*- encoding: utf-8 -*-
- """
- @Contact : liuyuqi.gov@msn.cn
- @Time : 2024/07/15
- @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
- @Desc : enter point
- """
- from crawl_beian import Beian
- from crawl_beian.options import parse_args
- if __name__=='__main__':
- # args = parse_args()
- # if args['command'] == 'crawl':
- # if args['extractor'] == 'sse':
- # sse = Sse()
- # sse.crawl()
- # elif args['extractor'] == 'cninfo':
- # cninfo = Cninfo()
- # cninfo.crawl()
- # elif args['command'] == 'download':
- # if args['extractor'] == 'cninfo':
- # 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)
- beian =Beian()
- beian.crawl()
-
|