Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google drive api 如何将网站上的图像直接存储到google drive API中,而不首先存储在磁盘中?(Python)_Google Drive Api - Fatal编程技术网

Google drive api 如何将网站上的图像直接存储到google drive API中,而不首先存储在磁盘中?(Python)

Google drive api 如何将网站上的图像直接存储到google drive API中,而不首先存储在磁盘中?(Python),google-drive-api,Google Drive Api,我使用python中的包“requests”从网站下载图像。我过去常常把它存储在电脑的磁盘上,然后上传到谷歌硬盘。我想直接下载google drive API中的文件,而不首先存储在磁盘中。我该怎么办?您能提供您当前的脚本吗?如果你能做到,请把它添加到你的问题中。

我使用python中的包“requests”从网站下载图像。我过去常常把它存储在电脑的磁盘上,然后上传到谷歌硬盘。我想直接下载google drive API中的文件,而不首先存储在磁盘中。我该怎么办?

您能提供您当前的脚本吗?如果你能做到,请把它添加到你的问题中。