gpt4 book ai didi

python - 如何从 GAE 发推文

转载 作者:太空宇宙 更新时间:2023-11-03 19:28:02 25 4
gpt4 key购买 nike

我希望能够通过在 GAE 上运行的应用程序发送推文。

请为此目的推荐一些 Python 库或 HTTP API。

最佳答案

关于 python-twitter:我认为你可以使用这个库,它似乎与 GAE 兼容:http://code.google.com/p/python-twitter/source/browse/twitter.py

另外:

Twitter 有一个非常出色的 REST API https://dev.twitter.com/docs/api ,您还可以简单地使用 appengine 中的 urlfetch 和 simplejson。

Twitter 使用 OAuth 进行身份验证,并建议了解其工作原理:

Twitter supports a few authentication methods and with a range of OAuth authentication styles you may be wondering which method you should be using. When choosing which authentication method to use you should understand the way that method will affect your users experience and the way you write your application.

Twitter 分享了一个非常棒的方法 https://dev.twitter.com/docs/auth/oauth

您还可以看到代码部分:http://code.google.com/p/jaikuengine/source/browse/trunk/oauth_client.py来自jaikuengine。

关于python - 如何从 GAE 发推文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7344887/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com