开发者

Uploading files to Google docs programmatically

开发者 https://www.devze.com 2023-03-12 13:57 出处:网络
I have many many pdf files around 50GB in my Ebooks folder. Now i want to upload them in Google docs like Rsync of Linux.

I have many many pdf files around 50GB in my Ebooks folder. Now i want to upload them in Google docs like Rsync of Linux. Is it possible to 开发者_开发技巧have the script in php or python which uploads all pdf files in Ebooks folder and subfolders to Google docs.

Now the problem is i need to restart computer many times and i want that script should start from where it was left with previous file so that i don't need to manually make selection of files. is it possible


You'd use the Google Documents API to upload them using a simple HTTP POST with the data. Here's an explanation how to upload and convert documents: http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#UploadingDocs

The link will provide you will examples and all you need to do what you were asking for.

To be more precise this is what you are looking for if you want to upload pdf's: http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#ResumableUploadPUT

  • Python Google Documents API guide
  • PHP Google Documents API guide
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号