从URL下载XLS

问题描述 投票:-1回答:1

我正在尝试使用Ubuntu 16.04LTS服务器从使用JavaScript将数据导出到XLS文件的网站中提取数据。

https://www.adfg.alaska.gov/sf/FishCounts/index.cfm?ADFG=main.displayResults

有一个名为Export as Excel Spreadsheet的链接,它在这里为您提供此链接

https://www.adfg.alaska.gov/sf/FishCounts/index.cfm?ADFG=export.excel&countLocationID=40&year=2017&speciesID=420

我尝试使用命令user $ wget rhino -weblink-但它编译错误79错误。

我不太了解编程,我只是想每天自动提取数据,并运行一个BASH脚本来为我计算电子表格中的数据。

javascript ubuntu-16.04 wget rhino
1个回答
0
投票

诺里

没有JS执行,该URL正常工作。这是我使用的命令:

curl -L -o FishCount.xls 'https://www.adfg.alaska.gov/sf/FishCounts/index.cfm?ADFG=export.excel&countLocationID=40&year=2017&speciesID=420'

请注意使用单引号来包装URL。否则BASH / SHELL会将&误解为后台进程。

© www.soinside.com 2019 - 2024. All rights reserved.