Google Drive wget 얻기

김경준·2023년 8월 28일
0

Error

목록 보기
5/7
post-custom-banner
  • https://deeplify.dev/server/bash/download-google-drive-file-in-terminal
  • 공유 링크 얻은 후 d/와 /view 사이의 문자열이 FILEID
  • wget --load-cookies ~/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies ~/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id={FILEID}' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id={FILEID}" -O {FILENAME} && rm -rf ~/cookies.txt

- (예시)
wget --load-cookies ~/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget --quiet --save-cookies ~/cookies.txt --keep-session-cookies --no-check-certificate 'https://docs.google.com/uc?export=download&id=1Xb8AOaW1qn79Hc7Pf2PX7OizxsRoCsL9' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=1Xb8AOaW1qn79Hc7Pf2PX7OizxsRoCsL9" -O dacon.tar && rm -rf ~/cookies.txt
post-custom-banner

0개의 댓글