简体   繁体   English

将html文档上传到python中的Google文档

[英]Upload an html document to Google Docs in python

I would like to create a small poc module in python 2.7 where I can upload a small html file in google docs and where we can convert it to google document and keep the html in the same stylesheet. 我想在python 2.7中创建一个小的poc模块,在其中我可以在google docs中上传一个小的html文件,在这里我们可以将其转换为google文档,并将html保留在相同的样式表中。

This is an example of my file I would like to upload and convert in google document format. 这是我要上传并以Google文档格式转换的文件的示例。

<html> 
 <h1>Heading 1</h1> 
 <h2>Heading 2</h2> 
 <h3>Heading 3</h3> 
 <p>Here we are </p>  
</html>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Google App Engine如何在谷歌文档中上传文档(python) - Using Google App Engine how to upload document in google docs (python) Python GAE上传到Google文档 - Python GAE upload to Google Docs 如何将文件从网络表单上传到Google文档? - How do I upload a document from a web form to google docs? 如何使用 python 将文本附加到 Google Docs 文档的末尾? - How to append text to the end of a Google Docs Document using python? Google Docs API和Python:如何更改文档的所有者? - Google Docs API and Python: How to change the owner of a document? 谷歌文档 API 和 Python - Google Docs API with Python 通过 Google 文档 API Python 客户端库创建新的 Google 文档的命令是什么? - What are the commands for creating a new Google Document via the Google Docs API Python Client Library? 通过SCRIPT在Google文档(文档)中调用独立脚本 - Call a standalone script by a SCRIPT in a Google Docs (Document) 使用谷歌文档 API 和 python 在键值对中添加数据时如何改善文档中的间距 - How to improve spacing in a document when adding data in key value pair using google docs API and python 如何通过gdata python客户端将pdf和pptx文件上传到Google文档? - How to upload pdf and pptx files to google docs via the gdata python client?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM