您将如何从 Google App Engine 应用程序查询 Picasa?数据 API 还是 URL 获取?

发布于 2024-08-03 05:41:49 字数 174 浏览 4 评论 0原文

您将如何从 Google App Engine 应用程序查询 Picasa?数据 API 还是 URL 获取?使用这两种方法的优点和缺点是什么?

[编辑]
我希望能够查询 Picasa 中的特定相册并列出其中的所有照片。 在 python 中执行此操作的代码示例非常受欢迎。

How would you query Picasa from a Google App Engine app? Data API or Url Fetch? What are the pros and cons of using either method?

[Edit]
I would like to be able to query a specific album in Picasa and list all the photos in it.
Code examples to do this in python are much appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

纵山崖 2024-08-10 05:41:49

你的问题有点偏离,因为数据 API 是通过 RESTful URL 公开的,所以这两种方法最终都是“URL Fetch”。

不过,Data API 工作得很好。它使您可以访问 Picasa 的几乎所有功能,并且响应以格式良好、记录良好的 XML 来回发送。 Google 的 API 文档非常好。

如果您只需要访问有限的公开内容(例如照片流),那么您可以通过获取 feed url 并解析它来在非常基本的级别上执行此操作...但即使如此,您也可以通过更多配置获得相同的数据通过数据 API URL 的选项。

我不确定您想要什么代码示例...这实际上取决于您实际想要使用 Picasa 做什么。

Your question is a little off, since the Data API is exposed through RESTful URLs, so both methods are ultimately a "URL Fetch".

The Data API works quite well, though. It gives you access to nearly all the functionality of Picasa, and responses are sent back and forth in well-formed, well-documented XML. Google's documentation for the API is very good.

If you only need access to limited publicly available content (like a photostream) then you can do this at a very basic level by just fetching the feed url and parsing that... but even for that you can get the same data with more configuration options via the Data API URLs.

I'm not sure what code samples you'd like... it really depends what you actually want to do with Picasa.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文