2

我在一个非常简单的基于 Python 的移动网站上使用 Twitter ghetto 共享

 return "http://mobile.twitter.com/home?status=" + urllib.quote(link)

我想更改共享,以便 Twitter 消息获取页面标题(我有)和缩短的 URL。

是否存在用于 Python 的通用库/微框架?

4

1 回答 1

3

我建议实现一个 URL-shortener API(即:bit.ly)。更进一步,这些流行服务中的大多数都有可用的 API 包装器(即:用于 bit.ly 的 Python API 包装器 - http://code.google.com/p/python-bitly/)。

于 2011-06-20T15:03:28.130 回答