我想从我的驱动器自动下载2个.gdoc文件。
我想通过python从我的驱动器下载2个.gdoc文件,它可以作为文件夹/pdf/docx下载。我已经在google文档的帮助下尝试过了,但是我没有让它起作用。
发布于 2019-09-12 14:41:53
您能使用google文件流在本地安装google驱动器吗?然后你可以尝试这样的方法:
src = source path
dest = dest path
os.chdir(src)
for file in os.listdir('.'):
if file.endswith('.pdf'):
sh.copy(file, dest)https://stackoverflow.com/questions/57909067
复制相似问题