我正在嘗試從該伺服器下載幾個檔案:
本質上我想用 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/