- 积分
- 32
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-30
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
最近需要下载CFSR上的风场数据,发现网站上提供几种方法,有一种可以利用wget批量下载,网站上会生成一段脚本,想在windows的 wget下载,请问有没有大侠指导下 如何操作 我根据提示改了用户名和密码以及取消了证书检查的注释 还是不成功 不知道原因 脚本我贴下面了 谢谢大家
:: DOS batch script to download selected files from rda.ucar.edu using Wget
::
:: Experienced Wget Users: add additional command-line flags here
:: Use the -r (--recursive) option with care
:: Do NOT use the -b (--background) option - simultaneous file downloads
:: can cause your data access to be blocked
set opts = "-N"
::
:: Replace "xxxxxx" with your rda.ucar.edu password on the next uncommented line
set passwd = "xxxxxx"
::
set cert_opt = ""
:: If you get a certificate verification error (version 1.10 or higher),
:: uncomment the following line:
set cert_opt = "--no-check-certificate"
::
if ($passwd == "xxxxxx") then
echo "You need to set your password before you can continue"
echo " see the documentation in the script"
exit
endif
::
:: authenticate - NOTE: You should only execute this command ONE TIME.
:: Executing this command for every data file you download may cause
:: your download privileges to be suspended.
wget %cert_opt% -O auth_status.rda.ucar.edu --save-cookies auth.rda.ucar.edu --post-data="email=xxxxxx&passwd=%passwd%&action=login" https://rda.ucar.edu/cgi-bin/login
::
:: download the file(s)
:: NOTE: if you get 403 Forbidden errors when downloading the data files, check
:: the contents of the file 'auth_status.rda.ucar.edu'
wget %cert_opt% %opts% --load-cookies auth.rda.ucar.edu http://rda.ucar.edu/data/ds093.0/2000/pgbh01.gdas.20000101-20000105.tar
wget %cert_opt% %opts% --load-cookies auth.rda.ucar.edu http://rda.ucar.edu/data/ds093.0/2000/pgbh01.gdas.20000106-20000110.tar
|
|