根据Google drive账户创建了scret.json,然后利用:
SCOPES = 'https://www.googleapis.com/auth/drive'
# SCOPES = 'https://drive.google.com/drive/folders/xxxxx'
CLIENT_SECRET_FILE = 'client_secret.json'
APPLICATION_NAME = 'Drive API Python Quickstart'
authInst = auth.auth(SCOPES,CLIENT_SECRET_FILE,APPLICATION_NAME)
credentials = authInst.getCredentials()
http = credentials.authorize(httplib2.Http())
实现了文件上传到Google drive。
但是想实现多线程上传,避免造成瓶颈,希望得到帮助,谢谢。
相似问题