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