
wget を使用してイメージをダウンロードすると、wget link
次のエラーが発生します。
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
--2015-05-24 14:47:46-- http://stripovionline.com/AlanFord/0002_Suplji_zub/1.jpeg
Reusing existing connection to stripovionline.com:80.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: [following]
--2015-05-24 14:47:47-- http://stripovionline.com/AlanFord/0002_Suplji_zub/1.jpeg
Reusing existing connection to stripovionline.com:80.
そして20回後にメッセージが表示されて終了します20 redirections exceeded.
ただし、通常はリンクにアクセスして画像を手動でダウンロードできます。
答え1
私のブラウザでも「ページが正しくリダイレクトされていません」というエラーが表示されてその画像をダウンロードできないので、これは正しいwget
動作である可能性もあります。確認のために他の画像をダウンロードしてみることをお勧めします。たとえば、http://cdn.sstatic.net/superuser/img/sprites.svg
私の場合は問題なく開きます。
のように特定のページからのみアクセス可能なファイルをダウンロードする必要がある場合はhttp://stripovionline.com/index.html
、その URL をリファラーとして wget に渡す必要があります。
wget --referer="http://stripovionline.com/index.html" "http://stripovionline.com/AlanFord/0002_Suplji_zub/1.jpeg"