M
M
malvin2018-04-19 17:55:41
Python
malvin, 2018-04-19 17:55:41

What is the easiest way to upload a file to google drive (Python)?

You need to save screenshots or pdf to google drive directly from the code that is hosted in the cloud.
Is it possible to somehow do without tokens and other authorization from Google? Security isn't that important.
Now I'm trying PyDrive, but it opens a browser page in which you need to manually confirm access. I have no idea how it will look in the cloud.
P.S. Perhaps there is another option for storing data in the cloud with a simpler API?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Samokhin, 2018-04-19
@hda1

You can write a script to accept POST requests and publish it as a web application.
Example https://stackoverflow.com/questions/42217052/how-t...

D
Dimonchik, 2018-04-19
@dimonchik2013

it’s impossible
, but there are options to open not a browser, but a CURL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question