2017-05-12 3 views
0

同じ正確なURLを見つけていないクロムからダウンロードする何の問題もありませんが、私はwgetのにしようとすると、私はエラーを取得する:はwgetの404で動作していない

[email protected]:~/dataset/imagenet_synsets$ wget http://image-net.org/download/synset?wnid=xxx&username=xxx&accesskey=xxx&release=latest&src=stanford 
[1] 5842 
[2] 5843 
[3] 5844 
[4] 5845 
[2] Done     username=xxx 
[email protected]:~/dataset/imagenet_synsets$ --2017-05-12 11:11:31-- http://image-net.org/download/synset?wnid=xxx 
Resolving image-net.org (image-net.org)... 171.64.68.16 
Connecting to image-net.org (image-net.org)|171.64.68.16|:80... connected. 
HTTP request sent, awaiting response... 404 Not Found 
2017-05-12 11:11:32 ERROR 404: Not Found. 

答えて

1

wgetはリダイレクトに従わないためです。代わりにcurlを使用することをおすすめします。

curl -L -O http://image-net.org/download/synset\?wnid\=xxx\&username\=xxx\&accesskey\=xxx\&release\=latest\&src\=stanford 

または(myfile.htmlに保存):

は、出力をファイルにリダイレクトするカールフォローリダイレクトを行うこと-Lフラグを使用し、そして-O又は-o <filename>

curl -L -o myfile.html http://image-net.org/download/synset\?wnid\=xxx\&username\=xxx\&accesskey\=xxx\&release\=latest\&src\=stanford 
関連する問題