본문 바로가기

hacking or software engineering skills/linux

[etc] 터미널에서 구글 드라이브 파일 다운로드하기 (용량 큰 거)

반응형

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

 

 

반응형