title: How to download a google drive folder using link in linux
body: <p>I have a shared google drive folder link(Anyone on the internet with this link can view) as below
  Ex: <a href="https://drive.google.com/drive/folders/1i_c8LhSLf-LttV-UOMDcY4rLAalxxxx?usp=sharing" rel="nofollow noreferrer">https://drive.google.com/drive/folders/1i_c8LhSLf-LttV-UOMDcY4rLAalxxxx?usp=sharing</a></p>
  <p>I want to download using any of the wget/CURL/any python packages.</p>
  <p>I have tried the below and it doesn't work.</p>
  <pre><code> curl -L &quot;https://drive.google.com/uc?id=1i_c8LhSLf-LttV-UOMDcY4rLAalkcayn&amp;export=download&quot; &gt; test.tar.gz
  </code></pre>
  <pre><code>import gdown
  import time
  url='https://drive.google.com/uc?id=1i_c8LhSLf-LttV-UOMDcY4rLAalkxxxx'
  output='/data/test/test.zip'
  time.sleep(100)
  gdown.download(url, output, quiet=False)
  </code></pre>
  <p>Error:</p>
  <pre><code>Permission denied: https://drive.google.com/uc?id=1i_c8LhSLf-LttV-UOMDcY4rLAalkcayn
  Maybe you need to change permission over 'Anyone with the link'?
  </code></pre>
  <p>The below command worked for files but not for folders</p>
  <pre><code>wget --no-check-certificate 'https://docs.google.com/uc?export=download&amp;id=11e85AnMEGEjrxPuewlmeg-ABOZ8asdf' -O test
  </code></pre>
  <p>Thanks for your help in advance!</p>