main.py 973 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. """
  4. @Contact : liuyuqi.gov@msn.cn
  5. @Time : 2024/07/15
  6. @License : Copyright © 2017-2022 liuyuqi. All Rights Reserved.
  7. @Desc : enter point
  8. """
  9. from crawl_beian import Beian
  10. from crawl_beian.options import parse_args
  11. if __name__=='__main__':
  12. # args = parse_args()
  13. # if args['command'] == 'crawl':
  14. # if args['extractor'] == 'sse':
  15. # sse = Sse()
  16. # sse.crawl()
  17. # elif args['extractor'] == 'cninfo':
  18. # cninfo = Cninfo()
  19. # cninfo.crawl()
  20. # elif args['command'] == 'download':
  21. # if args['extractor'] == 'cninfo':
  22. # cninfo =Cninfo()
  23. # cninfo.download()
  24. # elif args['command'] == 'help':
  25. # pass
  26. # elif args['command'] == 'version':
  27. # print('1.0.0')
  28. # else:
  29. # print('command error, please use --help to get help')
  30. # sys.exit(1)
  31. beian =Beian()
  32. beian.crawl()