I want to download a certain revision from a Google Document. From the Drive REST API v2 I got the following link:
https://docs.google.com/feeds/download/documents/export/Export?id=XXXXX&revision=1&exportFormat=txt
It's the first time I do something like this, I'm completely lost. Does it have something to do with authentication? What I'm intending to do is to finally have the .txt file in my PC.
I tried using this, without success:
http = urllib3.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=certifi.where())
url = 'https://docs.google.com/feeds/download/documents/export/Export?id=XXXXX&revision=1&exportFormat=txt'
response = http.request('GET', url)
print(response.status)
print(response.read())
What I got is:
200
b''
Probably I'm not taking into account a lot of concepts, any kind of help is welcome (in any programming language).
Thanks