![为什么我不能使用 wget 从该服务器下载文件?](https://linux22.com/image/1520552/%E4%B8%BA%E4%BB%80%E4%B9%88%E6%88%91%E4%B8%8D%E8%83%BD%E4%BD%BF%E7%94%A8%20wget%20%E4%BB%8E%E8%AF%A5%E6%9C%8D%E5%8A%A1%E5%99%A8%E4%B8%8B%E8%BD%BD%E6%96%87%E4%BB%B6%EF%BC%9F.png)
我正在尝试从该服务器下载几个文件:
本质上我想用 wget 获取所有 *.pfm 文件但它只是发出一条错误消息说:
--2017-02-01 15:12:54-- http://jaspar.genereg.net/html/DOWNLOAD/ARCHIVE/JASPAR2010/jaspar_CORE/non_redundant/all_species/FlatFileDir/
Connecting to jaspar.genereg.net (jaspar.genereg.net)|193.60.222.202|:80... connected.
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
我尝试了“正常wget
”wget -r -A pfm
我真的不知道问题是什么。
当我直接指定文件时:
wget http://jaspar.genereg.net/html/DOWNLOAD/ARCHIVE/JASPAR2010/jaspar_CORE/non_redundant/all_species/FlatFileDir/MA0001.1.pfm
运行良好。提前感谢您提供的任何帮助!
答案1
切换用户代理:
wget -r -l1 -U "Mozilla/5.0 (X11; Linux i686 (x86_64)) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36" http://jaspar.genereg.net/html/DOWNLOAD/ARCHIVE/JASPAR2010/jaspar_CORE/non_redundant/all_species/FlatFileDir/