hacking or software engineering skills/linux
[etc] 터미널에서 구글 드라이브 파일 다운로드하기 (용량 큰 거)
study&grow
2020. 10. 27. 10:54
728x90
FILEID에 아래 부분을 복사하기
FILENAME에 저장할 데이터 이름을 넣는다.
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=FILEID" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=FILEID" -o FILENAME
ex)
curl -c ./cookie -s -L "https://drive.google.com/uc?export=download&id=1IRnr2KHv0Cu_F1pFN6ec7N7OdF9_WR5F" > /dev/null
curl -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=1IRnr2KHv0Cu_F1pFN6ec7N7OdF9_WR5F" -o mydata.zip