Twitter连接需要关闭?

时间:2010-08-02 07:59:39

标签: python twitter

我开发了一个基于twitter api的应用程序,但我得到像a mesage that i've parsed and deleted to be parsed again at the next execution这样的错误,可能是因为我打开了twitter连接或者只是twitter API的错误。我还尝试delete all direct messages because it seemed too full for me but instead the Api has just reset the count of my messages,邮件尚未删除:((

1 个答案:

答案 0 :(得分:2)

Twitter的API是通过HTTP进行的,这是一种无状态协议。你真的不需要关闭连接,因为为每个请求建立和关闭连接