simple code to export from google docs
# -*- coding: utf-8 -*- import gdata.docs import gdata.docs.service gd_client = gdata.docs.service.DocsService() gd_client.ClientLogin('login@gmail.com', 'superpassword') #download file print.html in google docs ms = gdata.MediaSource(file_path='print.html', content_type="text/html") entry = gd_client.Upload(ms, 'NewDocument') #export the file to doc file_path = 'print.doc' gd_client.Export(entry, file_path)
the output file format is pdf and not doc.