
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"