我正在尝试从该服务器下载几个文件:
本质上我想用 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/