Google Drive
sainw ha modificato questa pagina 3 anni fa

Download file from Google Drive from command line

1) Share file link

  1. Right click file you want to share and select 'Share' menu
  2. Under 'Get Link' section, click share
  3. Change link option from 'Restricted' to 'Anyone with the link' and click 'Done'

2) Download file from command line

  • FIELDID can be found in the link url
  • OUTPUT_FILENAME is an output file name

    wget --no-check-certificate -r 'https://docs.google.com/uc?export=download&id=FILEID' -O OUTPUT_FILENAME
    

3) Turn the share link back to 'Restricted'

  1. Right click file and select 'Share' menu
  2. Under 'Get Link' section, click share
  3. Change link option back to 'Restricted'