Python3 - Download file from google docs private and public url
<p>I want to download files from google docs urls. I want it to know how to authenticate to google to download private files also. I found this <a href="https://github.com/uid/gdoc-downloader" rel="nofollow">github project</a> and it is very old, The authentication doesn't work, i can only download public files. Using urllib3 doesn't work and gives me js instead of html.</p>

<p>On the google docs api i've found a code that connects to google and knows only how to get recent docs(of the authenticated user) and things like that.</p>

<p>I need a code (prefer in pyhton3) that knows how to authenticate and download urls straight from google docs.</p>

<p>The user has to authenticate the app, which will most likely call a browser which will bring up the user consent screen. You can use the official <a href="https://developers.google.com/drive/v3/web/quickstart/python" rel="nofollow">Python Quickstart</a> to handle this.</p>

<p>As for downloading the docs, the documentation also discusses this (<a href="https://developers.google.com/drive/v3/web/manage-downloads" rel="nofollow">Download Files</a>) with some code snippets for python you can use.</p>

python python-3.x google-docs google-docs-api