简体   繁体   English

Google Apps Python脚本

[英]Google apps python script

I want to be able to give out a form, with essentially 4 inputs. 我希望能够给出一个表单,基本上包含4个输入。 Each time it is submitted, I would it to trigger a python script. 每次提交时,我都会触发一个python脚本。

I'm not totally sure where to start here. 我不确定从哪里开始。 I could have the python code live on a server somewhere and have the google apps script trigger it, but ideally I could do this without having to host my code somewhere else. 我可以将python代码放在​​服务器上的某个地方,并让google apps脚本触发它,但是理想情况下,我可以做到这一点而不必在其他地方托管我的代码。 I also would like to avoid paying for anything... 我也想避免支付任何费用...

Any and all advice would be appreciated. 任何和所有建议,将不胜感激。 Please assume I have only a small amount of knowledge about this kind of stuff. 请假设我对这类东西只有很少的知识。

Check out this tutorial on the AppEngine documentation. 在AppEngine文档中查看本教程。 https://developers.google.com/appengine/docs/python/gettingstartedpython27/introduction https://developers.google.com/appengine/docs/python/gettingstartedpython27/introduction

It will help you set up using Python and WebApp2 (for your forms!) and storing this data to datastore if you wish. 它将帮助您使用Python和WebApp2(用于表单!)进行设置,并根据需要将此数据存储到数据存储中。 You could just expand and modify the guestbook tutorial they make you do to have your application/script do exactly what you need it to. 您可以扩展和修改他们使您做的留言簿教程,以使您的应用程序/脚本准确地完成所需的工作。 It's an excellent tutorial to get started even if you don't have much knowledge about python or appengine. 即使您对python或appengine的了解不多,这也是入门的绝佳教程。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM