下载POI数据时总是 重复下载,进度条到最后了总是又跳转带开头重新下载:
解决方法
1.创建令牌
复制令牌:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
2.复制下载链接
如:https://opendata.pku.edu.cn/api/access/datafile/377XXXXXXXX?gbrecs=true
3.将令牌和下载链接带入到下列命令行中
Invoke-WebRequest -Uri “https://opendata.pku.edu.cn/api/access/datafile/377XXXXXXXX?gbrecs=true&key=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” -OutFile “D:\2018-POICSV-1.rar”
其中,
https://opendata.pku.edu.cn/api/access/datafile/377XXXXXXXX?gbrecs=true是下载链接
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx是令牌
D:\2018-POICSV-1.rar是你文件要下载到的位置
4.打开windows powershell
将上述修改好的命令行在其中运行即可下载
等待下载完成到对应的位置即可看到所需数据