||
import os ,sys
import wget
path="ftp://ftp.geodetic.gov.hk/rinex2"
year=input("请输入您要下载的年份:")
yr=year[2:4]
ptname=["hkcl","hkfn","hkks","hkkt"]
day=int(input ("请输入您要下载的天数:"))
ft=[]
out_dir="C://Users/lenovo/Desktop/wget"
for sitename in ptname:
for doy in range(day):
filename=sitename +"%03d" %doy+str(0)+"."+yr+"d.gz"
ftp=path+"/"+year+"/"+"%03d" %doy +"/"+sitename+"/30s/"+filename
ft.append(ftp )
f=open("tota.txt",'w')
for d in ft:
f.write(d+"\n")
download= "wget"+" " + d
print(download)
os.system(download)
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-11-24 09:12
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社