update download.py.

This commit is contained in:
Bigsk 2020-08-10 17:54:27 +08:00 committed by Gitee
parent de388c2b9c
commit 5cbc257ef2

View File

@ -1,6 +1,6 @@
import os,requests,json,time,sys,argparse,psutil
Log=""
UA={'User-Agent':'GeMCAPI/4.1.0 (GeMC API Sync 1.1.0;Release)'}
UA={'User-Agent':'GeMCAPI/4.5.0 (GeMC API Sync 1.5.0;Release)'}
parser=argparse.ArgumentParser()
parser.add_argument("--url", help="The online url of the file which need to download.")
parser.add_argument("--file", help="The file path of the file which need to download.")