<reponame>why36/actions-NjuHealthReport<filename>health_report_helper/main.py
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# Copyright 2021 zhangt2333. All Rights Reserved.
# Author-Github: github.com/zhangt2333
# main.py 2021/9/11 13:01
import json
import re
import sys

import config
import spider
import utils

if __name__ == '__main__':
    if len(sys.argv) > 1:
        config.data = json.loads(re.sub('#(.*)\n', '\n', sys.argv[1]).replace("'", '"'))
    if utils.get_GMT8_timestamp() > utils.str_to_timestamp(config.data['deadline'], '%Y-%m-%d'):
        print("超出填报日期")
        exit(-1)
    spider.main(config.data['username'], config.data['password'], config.data['location'])
# -*- coding: utf-8 -*-
#!/usr/bin/env python
# Copyright 2021 zhangt2333. All Rights Reserved.
# Author-Github: github.com/zhangt2333
# main.py 2021/9/11 13:01
import json
import re
import sys

import config
import spider
import utils

if __name__ == '__main__':
    if len(sys.argv) > 1:
        config.data = json.loads(re.sub('#(.*)\n', '\n', sys.argv[1]).replace("'", '"'))
    if utils.get_GMT8_timestamp() > utils.str_to_timestamp(config.data['deadline'], '%Y-%m-%d'):
        print("超出填报日期")
        exit(-1)
    spider.main(config.data['username'], config.data['password'], config.data['location'])
# -*- coding: utf-8 -*- #!/usr/bin/env python # Copyright 2021 zhangt2333. All Rights Reserved. # Author-Github: github.com/zhangt2333 # main.py 2021/9/11 13:01