main.py 648 B

123456789101112131415161718192021
  1. #!/usr/bin/env python
  2. # -*- encoding: utf-8 -*-
  3. '''
  4. @Author : liuyuqi
  5. @Contact : liuyuqi.gov@msn.cn
  6. @Time : 2019/11/11 04:40:28
  7. @Version : 1.0
  8. @License : (C)Copyright 2019
  9. @Desc : 按照规则下载pdf文件,直到请求无效停止
  10. '''
  11. import crawl_mrdx
  12. import argparse
  13. parser = argparse.ArgumentParser(description='Process some integers.')
  14. parser.add_argument('--start', dest='start', help="start date" , type=str, default=None,)
  15. parser.add_argument('--end', dest='end', help="end date", type=str, default=None,)
  16. if __name__ == '__main__':
  17. args = parser.parse_args()
  18. crawl_mrdx.run(start=args.start, end=args.end)