I need simple search-replace in doc file exported from google doc. and than upload it to google doc.
How do I do it in python ?
google doc also support pdf export. If editing pdf is easier , I will try that instead of doc.
I am using google app engine envrionment with python.
I am able to download and upload file easily. Just can’t figure out how to edit the file programmatically.
I think the Google Data API’s will only allow you to export and upload documents. To manipulate the document itself, it will probably be easiest to export to OpenDocument format (.odt), and use a Python library for that. Search the Python Package Index for “opendocument” and you will find some. ezodf and lpod seem not too difficult at first sight.